73% boostsite-seo-audit-tool

Code Review | Boostsite Planner

WordPress plugin Boostsite Planner scored73%from 54 tests.

About plugin

  • Plugin page: boostsite-seo-aud...
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.3
  • WordPress version: 6.3.1
  • First release: Jul 30, 2022
  • Latest release: Aug 28, 2023
  • Number of updates: 12
  • Update frequency: every 32.9 days
  • Top authors: boostsite (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /347 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
Install script ran successfully

Server metrics [RAM: ▲0.33MB] [CPU: ▼1.45ms] Passed 4 tests

Server-side resources used by Boostsite Planner
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.80 ▲0.3450.25 ▼22.55
Dashboard /wp-admin3.66 ▲0.3657.42 ▲6.21
Posts /wp-admin/edit.php3.69 ▲0.3465.46 ▲15.27
Add New Post /wp-admin/post-new.php6.22 ▲0.33101.92 ▼4.72
Media Library /wp-admin/upload.php3.52 ▲0.2953.70 ▲20.40

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

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

Browser metrics Passed 4 tests

Boostsite Planner: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲7114.46 ▲0.091.63 ▼0.7239.28 ▼23.23
Dashboard /wp-admin2,224 ▲365.82 ▲0.01102.29 ▼5.6972.73 ▲31.37
Posts /wp-admin/edit.php2,104 ▲151.97 ▼0.0436.65 ▲0.0932.75 ▼4.14
Add New Post /wp-admin/post-new.php1,680 ▲14722.11 ▼1.22750.59 ▲124.5559.69 ▼3.35
Media Library /wp-admin/upload.php1,406 ▲214.24 ▲0.0697.38 ▼10.3747.60 ▲3.85

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method Boostsite\AI_Plugin\PluginLoader::uninstall() should not be called statically
  • The uninstall procedure has failed, leaving 8 options in the database
    • theysaidso_admin_options
    • settings_api
    • widget_recent-posts
    • widget_theysaidso_widget
    • settings_form
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

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
Everything seems fine, however 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
Almost there! Just fix the following items
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/media.php' (include_path='.:/usr/share/php') in wp-content/plugins/boostsite-seo-audit-tool/plugin/Src/RestApi.php on line 8
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/media.php): failed to open stream: No such file or directory in wp-content/plugins/boostsite-seo-audit-tool/plugin/Src/RestApi.php on line 8
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/boostsite-seo-audit-tool/plugin/Src/RestApi.php on line 8

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

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention: You can take inspiration from this readme.txt

boostsite-seo-audit-tool/boostsite.php 85% from 13 tests

The entry point to "Boostsite Planner" version 2.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("boostsite-seo-audit-tool.php" instead of "boostsite.php")

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
Success! There were no dangerous files found in this plugin54,989 lines of code in 46 files:
LanguageFilesBlank linesComment linesLines of code
CSS173,31912940,962
JavaScript81,2161,84612,230
PHP184995571,665
PO File14343109
JSON20023

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity22.20
▷ Minimum class complexity1.00
▷ Maximum class complexity96.00
Average method complexity3.19
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes330.00%
Methods93
▷ Static methods1415.05%
▷ Public methods9197.85%
▷ Protected methods00.00%
▷ Private methods22.15%
Functions6
▷ Named functions233.33%
▷ Anonymous functions466.67%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 compressed PNG files occupy 0.01MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
asset/boostsite-logo.png10.75KB11.39KB0.00%
asset/boostsite-icon.png1.44KB1.01KB▼ 29.77%