84% what-would-bertrand-russel-say

Code Review | What Would Bertrand Russel Say

WordPress plugin What Would Bertrand Russel Say scored84%from 54 tests.

About plugin

  • Plugin page: what-would-bertra...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0-3.5.1
  • WordPress version: 6.3.1
  • First release: Apr 3, 2013
  • Latest release: Apr 4, 2013
  • Number of updates: 2
  • Update frequency: every 3.5 days
  • Top authors: foo123 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /687 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by What Would Bertrand Russel Say
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.07 ▼2.68
Dashboard /wp-admin3.31 ▲0.0148.82 ▼6.68
Posts /wp-admin/edit.php3.37 ▲0.0150.70 ▼1.48
Add New Post /wp-admin/post-new.php5.90 ▲0.0199.01 ▼11.04
Media Library /wp-admin/upload.php3.24 ▲0.0138.09 ▲0.47

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for What Would Bertrand Russel Say
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲3514.35 ▼0.261.84 ▼0.2140.71 ▼2.60
Dashboard /wp-admin2,199 ▲195.62 ▲0.0693.43 ▲2.9943.58 ▲2.76
Posts /wp-admin/edit.php2,107 ▲42.01 ▼0.0139.10 ▼3.2240.04 ▲2.10
Add New Post /wp-admin/post-new.php1,603 ▲7622.73 ▼0.18601.94 ▼20.6336.41 ▼34.53
Media Library /wp-admin/upload.php1,407 ▲134.19 ▼0.0496.06 ▼1.1747.85 ▲5.15

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

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
Even though no errors were found, this is by no means an exhaustive test

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× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/what-would-bertrand-russel-say/bertrand-says.php:62

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: quotes, russel, bertrand

what-would-bertrand-russel-say/bertrand-says.php 85% from 13 tests

Analyzing the main PHP file in "What Would Bertrand Russel Say" version 0.1
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("what-would-bertrand-russel-say.php" instead of "bertrand-says.php")
  • Description: The description should be shorter than 140 characters (currently 376 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 plugin58 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP191858

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin