90% siteimprove

Code Review | Siteimprove

WordPress plugin Siteimprove scored90%from 54 tests.

About plugin

  • Plugin page: siteimprove
  • Plugin version: 2.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.2-6.2.2
  • WordPress version: 6.3.1
  • First release: Mar 23, 2017
  • Latest release: Aug 30, 2023
  • Number of updates: 55
  • Update frequency: every 42.7 days
  • Top authors: siteimprove (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /38,476 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▲0.85ms] Passed 4 tests

An overview of server-side resources used by Siteimprove
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2242.79 ▲4.98
Dashboard /wp-admin3.51 ▲0.2150.75 ▲2.63
Posts /wp-admin/edit.php3.63 ▲0.2748.33 ▲3.30
Add New Post /wp-admin/post-new.php5.40 ▼0.4885.00 ▼7.50
Media Library /wp-admin/upload.php3.44 ▲0.2140.56 ▲7.46

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

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

Browser metrics Passed 4 tests

Siteimprove: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,004 ▲24313.84 ▼0.7711.59 ▲9.9151.07 ▲5.98
Dashboard /wp-admin2,257 ▲805.86 ▲0.2587.89 ▲4.9779.51 ▲34.39
Posts /wp-admin/edit.php2,185 ▲852.32 ▲0.3236.50 ▲0.0141.87 ▲7.23
Add New Post /wp-admin/post-new.php1,627 ▲9020.59 ▲2.44670.50 ▲22.6344.14 ▼17.79
Media Library /wp-admin/upload.php1,461 ▲614.36 ▲0.16115.30 ▲21.6194.79 ▲55.87

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
6 plugin tags: accessibility, insights, seo, analytics, spelling...

siteimprove/siteimprove.php Passed 13 tests

"Siteimprove" version 2.0.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
29 characters long description:
Integration with Siteimprove.

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
There were no executable files found in this plugin1,335 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP11190609894
JavaScript43832369
CSS25771
SVG1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity17.00
▷ Minimum class complexity1.00
▷ Maximum class complexity67.00
Average method complexity3.21
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods58
▷ Static methods1932.76%
▷ Public methods5187.93%
▷ Protected methods11.72%
▷ Private methods610.34%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin