78% accidentals

Code Review | Accidentals

WordPress plugin Accidentals scored 78% from 54 tests.

About plugin

  • Plugin page: accidentals
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.4
  • WordPress version: 6.3.1
  • First release: Nov 26, 2012
  • Latest release: Nov 26, 2012
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: bpimentel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 957 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
The plugin installed gracefully, with no errors

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

Server-side resources used by Accidentals
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.39 ▼0.0725.69 ▼16.84
Dashboard /wp-admin3.31 ▲0.0147.44 ▼5.32
Posts /wp-admin/edit.php3.36 ▲0.0146.97 ▼1.33
Add New Post /wp-admin/post-new.php5.89 ▲0.0180.15 ▼9.80
Media Library /wp-admin/upload.php3.24 ▲0.0135.77 ▲0.14
Accidentals /wp-admin/options-general.php?page=accidentals3.1835.47

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Accidentals
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,087 ▲29815.28 ▲2.1132.57 ▲30.7657.49 ▲11.14
Dashboard /wp-admin2,210 ▲75.90 ▲0.00115.64 ▲4.2345.97 ▲2.76
Posts /wp-admin/edit.php2,090 ▲11.97 ▼0.0335.57 ▲0.0936.13 ▲1.12
Add New Post /wp-admin/post-new.php1,536 ▲13723.07 ▲5.29657.69 ▼19.1255.17 ▲6.01
Media Library /wp-admin/upload.php1,395 ▲74.24 ▲0.0398.21 ▼11.3038.71 ▼9.77
Accidentals /wp-admin/options-general.php?page=accidentals9252.0726.8644.33

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 does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=accidentals
    • > 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=accidentals
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=accidentals
    • > Notice in wp-content/plugins/accidentals/accidentals.php+162
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/accidentals/accidentals.php:40

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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 require attention:
  • Plugin Name: Please specify the plugin name on the first line ( === accidentals === )
The official readme.txt might help

accidentals/accidentals.php 92% from 13 tests

Analyzing the main PHP file in "Accidentals" version 0.1
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 205 characters long)

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
Everything looks great! No dangerous files found in this plugin268 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript41625146
PHP11335122

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.34
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin