79% toppersystem

Code Review | Topper System SEO

WordPress plugin Topper System SEO scored79%from 54 tests.

About plugin

  • Plugin page: toppersystem
  • Plugin version: 4.1
  • PHP compatiblity: 7.2.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1-6.4.1
  • WordPress version: 6.3.1
  • First release: Sep 8, 2022
  • Latest release: Dec 2, 2023
  • Number of updates: 96
  • Update frequency: every 8.3 days
  • Top authors: toppersystem (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active /1,535 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲1.04MB] [CPU: ▼4.49ms] Passed 4 tests

This is a short check of server-side resources used by Topper System SEO
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.57 ▲1.1042.93 ▲3.23
Dashboard /wp-admin4.42 ▲1.1246.28 ▼0.98
Posts /wp-admin/edit.php4.55 ▲1.1945.32 ▼4.39
Add New Post /wp-admin/post-new.php6.65 ▲0.7676.50 ▼15.83
Media Library /wp-admin/upload.php4.43 ▲1.2043.24 ▲9.16

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 124 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Topper System SEO
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲7614.61 ▲0.453.64 ▲1.9436.23 ▼7.66
Dashboard /wp-admin2,233 ▲555.55 ▼0.33104.86 ▼4.7950.81 ▲8.06
Posts /wp-admin/edit.php2,138 ▲351.98 ▼0.1042.23 ▼3.8839.67 ▼1.50
Add New Post /wp-admin/post-new.php1,630 ▲10121.97 ▼1.30679.04 ▲11.8856.70 ▲2.05
Media Library /wp-admin/upload.php1,435 ▲324.24 ▲0.03109.32 ▲13.7047.52 ▲5.38

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/toppersystem/uninstall.php+75
    Only variables should be passed by reference
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

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, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: seo, carbon offsetting, minify, climate neutral, co2 footprint...

toppersystem/toppersystem.php 92% from 13 tests

"Topper System SEO" version 4.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 171 characters long)

Code Analysis 97% from 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 plugin48,919 lines of code in 86 files:
LanguageFilesBlank linesComment linesLines of code
PHP652,68771030,956
JavaScript191,4379916,589
CSS215411,374

PHP code 50% from 2 tests

This is a very shot review of cyclomatic complexity and code structure
It is recommended to fix the following
  • Cyclomatic complexity of methods should be reduced to less than 100 (currently 265)
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity56.00
▷ Minimum class complexity1.00
▷ Maximum class complexity809.00
Average method complexity14.53
▷ Minimum method complexity1.00
▷ Maximum method complexity265.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes102
▷ Abstract classes00.00%
▷ Concrete classes102100.00%
▷ Final classes00.00%
Methods393
▷ Static methods37695.67%
▷ Public methods37996.44%
▷ Protected methods133.31%
▷ Private methods10.25%
Functions14
▷ Named functions00.00%
▷ Anonymous functions14100.00%
Constants46
▷ Global constants4189.13%
▷ Class constants510.87%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
21 PNG files occupy 0.08MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
image/autoupdatets.png4.38KB3.28KB▼ 25.16%
image/guidets.png3.72KB2.74KB▼ 26.25%
image/aspmts.png4.77KB3.54KB▼ 25.70%
image/agrementts.png5.57KB4.15KB▼ 25.48%
image/apicenterts.png1.94KB1.61KB▼ 17.18%