84% must-read

Code Review | Must Read!

WordPress plugin Must Read! scored84%from 54 tests.

About plugin

  • Plugin page: must-read
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9
  • WordPress version: 6.3.1
  • First release: Nov 9, 2017
  • Latest release: Nov 9, 2017
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: Kubitomakita (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /678 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Must Read!
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0367.84 ▼1.82
Dashboard /wp-admin3.33 ▼0.0277.11 ▼24.63
Posts /wp-admin/edit.php3.38 ▲0.0275.94 ▼24.16
Add New Post /wp-admin/post-new.php5.91 ▲0.02146.09 ▼8.56
Media Library /wp-admin/upload.php3.25 ▲0.0262.53 ▼1.66

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 26 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_mustread
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Must Read!
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲8114.46 ▲0.493.95 ▲0.6379.78 ▲2.58
Dashboard /wp-admin2,197 ▲125.80 ▲0.90174.71 ▼18.3188.11 ▲0.65
Posts /wp-admin/edit.php2,089 ▼32.05 ▲0.0664.41 ▼12.9267.42 ▼11.44
Add New Post /wp-admin/post-new.php1,518 ▲12118.12 ▲0.371,039.53 ▲107.6984.17 ▲8.93
Media Library /wp-admin/upload.php1,379 ▼94.30 ▲0.03178.69 ▲5.3798.50 ▲8.10

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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 were found after uninstall: 7 options
    • widget_theysaidso_widget
    • widget_mustread
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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
The following issues need your attention
  • 8× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/must-read/must-read.php:15
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/must-read/views/widget.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/must-read/views/widget-form.php:8
    • > PHP Notice
      Undefined variable: args in wp-content/plugins/must-read/views/widget.php on line 6
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/must-read/views/list.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function has_post_thumbnail() in wp-content/plugins/must-read/views/list-image.php:1
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/must-read/class/Widget.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function mustread() in wp-content/plugins/must-read/views/widget.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: post list, list, must read, widget

must-read/must-read.php 85% from 13 tests

The principal PHP file in "Must Read!" v. 1.0.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected853 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP21284407808
CSS16024
JSON20021

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity11.22
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.74
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods54
▷ Static methods35.56%
▷ Public methods5398.15%
▷ Protected methods00.00%
▷ Private methods11.85%
Functions5
▷ Named functions360.00%
▷ Anonymous functions240.00%
Constants2
▷ Global constants2100.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
No PNG images were found in this plugin