83% killer-further-reading

Code Review | Killer Further Reading

WordPress plugin Killer Further Reading scored83%from 54 tests.

About plugin

  • Plugin page: killer-further-re...
  • Plugin version: 0.05
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.4
  • WordPress version: 6.3.1
  • First release: Jan 27, 2014
  • Latest release: Nov 19, 2015
  • Number of updates: 16
  • Update frequency: every 41.4 days
  • Top authors: shabbirbhimani (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,047 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.43ms] Passed 4 tests

Server-side resources used by Killer Further Reading
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.60 ▼1.73
Dashboard /wp-admin3.32 ▲0.0146.94 ▲1.56
Posts /wp-admin/edit.php3.37 ▲0.0146.35 ▼0.77
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.21 ▼24.76
Media Library /wp-admin/upload.php3.24 ▲0.0136.21 ▲3.62

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Killer Further Reading
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.69 ▼0.521.63 ▼0.3638.91 ▼6.54
Dashboard /wp-admin2,206 ▲214.87 ▼0.00115.00 ▲1.8142.55 ▼2.12
Posts /wp-admin/edit.php2,092 ▲61.97 ▼0.0639.69 ▼0.9834.81 ▼2.51
Add New Post /wp-admin/post-new.php1,520 ▲323.27 ▲5.64672.87 ▲15.5754.88 ▲2.26
Media Library /wp-admin/upload.php1,391 ▲34.23 ▲0.01104.78 ▲5.5542.01 ▼3.91

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_killer_further_reading
    • widget_recent-comments
    • widget_theysaidso_widget

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
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/killer-further-reading/kfr.php:11

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 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === killer-further-reading === )
  • Screenshots: Please add an image for screenshot #1 (Plugin Widget.)
The official readme.txt is a good inspiration

killer-further-reading/kfr.php 85% from 13 tests

The entry point to "Killer Further Reading" version 0.05 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("killer-further-reading.php" instead of "kfr.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 188 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin111 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11220111

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.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.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png26.69KB7.59KB▼ 71.54%