77% wp-reading-list

Code Review | WP Reading List

WordPress plugin WP Reading List scored 77% from 54 tests.

About plugin

  • Plugin page: wp-reading-list
  • Plugin version: 4.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.7
  • WordPress version: 5.8.1
  • First release: Aug 29, 2013
  • Latest release: Apr 27, 2021
  • Number of updates: 31
  • Update frequency: every 90.4 days
  • Top authors: mstumpf (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active / 7,444 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.23MB] [CPU: ▼138.59ms] Passed 4 tests

Analyzing server-side resources used by WP Reading List
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.96 ▲0.2435.13 ▲13.32
Dashboard /wp-admin3.29 ▲0.2349.11 ▲3.65
Posts /wp-admin/edit.php3.41 ▲0.3048.22 ▲3.18
Add New Post /wp-admin/post-new.php5.65 ▲0.2294.59 ▼565.45
Media Library /wp-admin/upload.php3.23 ▲0.2336.00 ▲4.27
Authors /wp-admin/edit-tags.php?taxonomy=work-author&post_type=works3.2332.19
All Works /wp-admin/edit.php?post_type=works3.2839.05
WP Reading List /wp-admin/options-general.php?page=wprl-options3.2439.78
Add New /wp-admin/post-new.php?post_type=works3.3656.24
Work Types /wp-admin/edit-tags.php?taxonomy=work-type&post_type=works3.2336.58

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 1 new option
New WordPress options
wprl_plugin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Reading List
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,759 ▲16316.28 ▲0.7710.49 ▼1.8946.50 ▲1.97
Dashboard /wp-admin3,020 ▲865.93 ▼0.04140.53 ▼10.45109.87 ▼0.41
Posts /wp-admin/edit.php2,802 ▲632.73 ▲0.0370.37 ▲0.6893.14 ▲3.47
Add New Post /wp-admin/post-new.php1,715 ▲21518.77 ▲0.02402.81 ▲9.38106.52 ▼2.03
Media Library /wp-admin/upload.php1,798 ▲625.00 ▼0.02166.23 ▲18.33122.38 ▲1.10
Authors /wp-admin/edit-tags.php?taxonomy=work-author&post_type=works1,7612.4076.2784.02
All Works /wp-admin/edit.php?post_type=works1,6522.6565.2371.41
WP Reading List /wp-admin/options-general.php?page=wprl-options2,0643.9272.2496.60
Add New /wp-admin/post-new.php?post_type=works3,3649.24222.00144.09
Work Types /wp-admin/edit-tags.php?taxonomy=work-type&post_type=works1,7762.4058.7382.86

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • wprl_plugin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 6× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_queried_object() in wp-content/plugins/wp-reading-list/wprl-theme/taxonomy-work-type.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-reading-list/wprl-theme/single-works.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-reading-list/wprl-theme/archive-works.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_queried_object() in wp-content/plugins/wp-reading-list/wprl-theme/taxonomy-work-author.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-reading-list/wprl-core/wp-reading-list-taxonomies.php:56
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-reading-list/wprl-admin/wp-reading-list-admin.php:96

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
    • > GET request to /wp-admin/options-general.php?page=wprl-options
    • > Javascript (severe) in unknown
    /wp-content/plugins/wp-reading-list/wprl-admin/wp-reading-list-admin-script.js?4_0_1&ver=5.8.1 13:60 Uncaught TypeError: Cannot read properties of null (reading 'value')

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === wp-reading-list === )
  • Screenshots: A description for screenshot #5 is missing in wp-reading-list/assets to your readme.txt
  • Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
You can look at the official readme.txt

wp-reading-list/wp-reading-list.php Passed 13 tests

The entry point to "WP Reading List" version 4.0.1 is a PHP file that has certain tags in its header comment area
138 characters long description:
WP Reading List is a plugin designed to help organize and display books, magazines, articles, and anything else that you have read lately.

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
No dangerous file extensions were detected1,891 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP12921281,124
CSS3121179557
JavaScript2918120
Markdown146090

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions73
▷ Named functions73100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
(invalid) wprl-theme/default.png11.01KB0.00KB▼ 100.00%