84% cite

Code Review | Cite

WordPress plugin Cite scored84%from 54 tests.

About plugin

  • Plugin page: cite
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.7.4
  • WordPress version: 6.3.1
  • First release: Mar 28, 2014
  • Latest release: Jul 29, 2015
  • Number of updates: 17
  • Update frequency: every 67.0 days
  • Top authors: EnigmaWeb (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

200+ active /4,387 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▲10.22ms] Passed 4 tests

A check of server-side resources used by Cite
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.0271.02 ▲25.20
Dashboard /wp-admin3.59 ▲0.0356.86 ▲3.21
Posts /wp-admin/edit.php3.71 ▲0.0360.67 ▲10.49
Add New Post /wp-admin/post-new.php6.17 ▲0.03123.15 ▲18.66
Media Library /wp-admin/upload.php3.52 ▲0.0341.53 ▲8.52

Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Cite
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲4514.16 ▼0.222.52 ▲0.8159.94 ▲13.67
Dashboard /wp-admin2,194 ▲175.77 ▲0.0998.00 ▲7.0282.96 ▲39.98
Posts /wp-admin/edit.php2,120 ▲202.01 ▲0.0145.88 ▲8.2140.20 ▲5.60
Add New Post /wp-admin/post-new.php1,548 ▲2223.23 ▲5.48750.46 ▲6.8257.58 ▼4.07
Media Library /wp-admin/upload.php1,405 ▲114.18 ▼0.10119.64 ▲4.0057.55 ▲13.48

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/cite/cite.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: citation, cite, referencing, reference

cite/cite.php 92% from 13 tests

The primary PHP file in "Cite" version 1.2.2 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 147 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin213 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PO File23838127
PHP1242186

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
cite-icon.png3.45KB0.92KB▼ 73.23%