84% wp-isbn

Code Review | WP ISBN

WordPress plugin WP ISBN scored84%from 54 tests.

About plugin

  • Plugin page: wp-isbn
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-4.3
  • WordPress version: 6.3.1
  • First release: Jul 14, 2015
  • Latest release: Jul 14, 2015
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: bi0xid (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,258 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

This is a short check of server-side resources used by WP ISBN
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.09 ▼1.76
Dashboard /wp-admin3.31 ▼0.0447.09 ▼16.30
Posts /wp-admin/edit.php3.36 ▲0.0049.44 ▼1.51
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.25 ▼11.22
Media Library /wp-admin/upload.php3.23 ▲0.0038.97 ▲3.32

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for WP ISBN
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.23 ▼0.062.07 ▲0.3744.11 ▲0.55
Dashboard /wp-admin2,195 ▲215.62 ▲0.1093.47 ▲5.2840.21 ▼0.99
Posts /wp-admin/edit.php2,100 ▲31.99 ▼0.0039.39 ▲4.9035.08 ▲1.35
Add New Post /wp-admin/post-new.php1,526 ▼022.98 ▼0.71597.16 ▼96.6952.11 ▼10.14
Media Library /wp-admin/upload.php1,403 ▲34.19 ▲0.0595.27 ▼12.6042.06 ▼2.99

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 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-isbn/wp-isbn.php:42

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 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
Please fix the following attributes:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === wp-isbn === )
  • Screenshots: These screenshots do not have images: #1 (Use of the shortcode), #2 (This is how the title is shown by default)
The official readme.txt is a good inspiration

wp-isbn/wp-isbn.php Passed 13 tests

"WP ISBN" version 0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
80 characters long description:
Allows you use ISBN shortcode and maintain a personal library in your WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin17 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1111617

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.09
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%
Functions1
▷ Named functions1100.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
2 PNG files occupy 0.12MB with 0.09MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png26.81KB7.25KB▼ 72.96%
screenshot-2.png97.26KB26.29KB▼ 72.97%