78% wp-errata

Code Review | WP Errata

WordPress plugin WP Errata scored78%from 54 tests.

About plugin

  • Plugin page: wp-errata
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-3.5
  • WordPress version: 6.3.1
  • First release: Dec 29, 2012
  • Latest release: Dec 29, 2012
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: jaschahal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /781 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
Installer ran successfully

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

A check of server-side resources used by WP Errata
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0338.89 ▲3.51
Dashboard /wp-admin3.33 ▼0.0144.41 ▼13.19
Posts /wp-admin/edit.php3.38 ▲0.0244.05 ▲0.75
Add New Post /wp-admin/post-new.php5.91 ▲0.0279.70 ▼13.11
Media Library /wp-admin/upload.php3.25 ▲0.0234.94 ▼1.62
WP Errata /wp-admin/options-general.php?page=jcwperrata-plugin3.1930.97

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 16 new options
New WordPress options
jcwperrata_linkback
db_upgraded
widget_recent-comments
jcwperrata_active
jcwperrata_usermessage
jcwperrata_email
widget_recent-posts
jcwperrata_cancelbuttonlabel
jcwperrata_disableon_mobile
can_compress_scripts
...

Browser metrics Passed 4 tests

An overview of browser requirements for WP Errata
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,948 ▲20214.03 ▼0.3510.10 ▲8.4046.02 ▲6.39
Dashboard /wp-admin2,210 ▲214.88 ▼0.09111.10 ▲2.5641.53 ▼2.09
Posts /wp-admin/edit.php2,096 ▲72.03 ▼0.0234.29 ▼1.2632.14 ▼0.25
Add New Post /wp-admin/post-new.php1,536 ▲1523.53 ▲0.15670.77 ▼3.4953.39 ▲0.60
Media Library /wp-admin/upload.php1,392 ▲104.29 ▲0.06105.62 ▼11.7746.99 ▲0.14
WP Errata /wp-admin/options-general.php?page=jcwperrata-plugin1,0122.0825.8542.58

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 16 options in the database
    • jcwperrata_disableon_mobile
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • jcwperrata_selectall
    • jcwperrata_cancelbuttonlabel
    • jcwperrata_active
    • jcwperrata_usermessage
    • jcwperrata_linkback
    • ...

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=jcwperrata-plugin
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=jcwperrata-plugin
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-errata/wp-errata.php:25

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

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (A screen shot of the options page), #2 (Shows content being edited)
  • Plugin Name: Please specify the plugin name on the first line ( === wp-errata === )
You can take inspiration from this readme.txt

wp-errata/wp-errata.php 92% from 13 tests

Analyzing the main PHP file in "WP Errata" version 1.0
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 157 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected702 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2164246626
CSS11075
JavaScript15201

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.82
Average class complexity104.00
▷ Minimum class complexity104.00
▷ Maximum class complexity104.00
Average method complexity6.15
▷ Minimum method complexity1.00
▷ Maximum method complexity58.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods1890.00%
▷ Protected methods00.00%
▷ Private methods210.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
edit.png0.64KB0.60KB▼ 7.29%
screenshot-1.png29.61KB14.88KB▼ 49.73%
screenshot-2.png5.07KB3.24KB▼ 36.04%