78% citekite

Code Review | CiteKite

WordPress plugin CiteKite scored78%from 54 tests.

About plugin

  • Plugin page: citekite
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-3.3.1
  • WordPress version: 6.3.1
  • First release: Apr 10, 2012
  • Latest release: Apr 11, 2012
  • Number of updates: 5
  • Update frequency: every 1.8 days
  • Top authors: johnmate (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,114 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
Install script ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼8.95ms] Passed 4 tests

Server-side resources used by CiteKite
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.40 ▼0.0724.01 ▼17.43
Dashboard /wp-admin3.32 ▲0.0245.89 ▼2.55
Posts /wp-admin/edit.php3.37 ▲0.0249.10 ▲4.40
Add New Post /wp-admin/post-new.php5.90 ▲0.0284.35 ▼16.38
Media Library /wp-admin/upload.php3.24 ▲0.0238.28 ▲0.58
CiteKite /wp-admin/options-general.php?page=citekite-settings3.1931.38

Server storage [IO: ▲0.03MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by CiteKite
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.72 ▼0.001.55 ▼0.2437.19 ▼7.83
Dashboard /wp-admin2,193 ▲195.54 ▼0.0486.93 ▼19.6439.63 ▼5.95
Posts /wp-admin/edit.php2,101 ▲11.97 ▲0.0039.92 ▲1.4137.59 ▲5.03
Add New Post /wp-admin/post-new.php1,529 ▲123.00 ▼0.15597.35 ▼29.7559.09 ▼8.45
Media Library /wp-admin/upload.php1,404 ▲14.12 ▼0.05104.35 ▼6.2148.37 ▼1.13
CiteKite /wp-admin/options-general.php?page=citekite-settings8352.0423.8027.59

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=citekite-settings
    • > Notice in wp-content/plugins/citekite/citekite.php+48
    Undefined index: citekite_nonce
    • > GET request to /wp-admin/options-general.php?page=citekite-settings
    • > Notice in wp-content/plugins/citekite/citekite.php+59
    Undefined variable: success
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=citekite-settings
    • > Notice in wp-content/plugins/citekite/citekite.php+90
    Trying to access array offset on value of type bool
    • > GET request to /wp-admin/options-general.php?page=citekite-settings
    • > Notice in wp-content/plugins/citekite/citekite.php+107
    Undefined index: enabled

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/citekite/citekite.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Screenshots: Add an image for screenshot #1 (This is the CiteKite validated label that proves the quotation was independently validated by CiteKite.)
The official readme.txt might help

citekite/citekite.php Passed 13 tests

The main PHP script in "CiteKite" version 1.0 is automatically included on every request by WordPress
62 characters long description:
This should be replaced with your plugin's formal description.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin100 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1137100

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.80
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png16.75KB10.47KB▼ 37.48%