89% seopress-for-mainwp

Code Review | SEOPress for MainWP

WordPress plugin SEOPress for MainWP scored89%from 54 tests.

About plugin

  • Plugin page: seopress-for-mainwp
  • Plugin version: 1.3.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.2
  • WordPress version: 6.3.1
  • First release: Sep 20, 2022
  • Latest release: May 9, 2023
  • Number of updates: 23
  • Update frequency: every 11.2 days
  • Top authors: rainbowgeek (100%)

Code review

54 tests

User reviews

1 review

Install metrics

700+ active /5,845 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.01MB] [CPU: ▼8.04ms] Passed 4 tests

This is a short check of server-side resources used by SEOPress for MainWP
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0243.43 ▼1.94
Dashboard /wp-admin3.32 ▲0.0147.18 ▼0.65
Posts /wp-admin/edit.php3.37 ▲0.0146.68 ▼6.26
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.34 ▼23.30
Media Library /wp-admin/upload.php3.24 ▲0.0140.82 ▲4.61

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for SEOPress for MainWP
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.38 ▲0.111.66 ▼0.5739.90 ▼7.75
Dashboard /wp-admin2,195 ▲185.54 ▼0.1694.13 ▼1.1438.96 ▼1.06
Posts /wp-admin/edit.php2,103 ▲31.99 ▼0.0135.74 ▲0.3533.76 ▼3.80
Add New Post /wp-admin/post-new.php1,534 ▲623.05 ▲0.06663.21 ▼20.6548.14 ▼16.82
Media Library /wp-admin/upload.php1,400 ▲64.20 ▲0.01112.33 ▲11.6147.39 ▼0.05

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: multiple wordpress sites, seo, wordpress controller, multisite, wordpress management...

seopress-for-mainwp/wp-seopress-mainwp.php 77% from 13 tests

The principal PHP file in "SEOPress for MainWP" v. 1.3.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("seopress-for-mainwp.php" instead of "wp-seopress-mainwp.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected3,645 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
PHP294396872,455
JavaScript11386898
CSS1424291
SVG1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity15.06
▷ Minimum class complexity2.00
▷ Maximum class complexity47.00
Average method complexity4.52
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces3
Interfaces0
Traits1
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes16.67%
Methods64
▷ Static methods34.69%
▷ Public methods3656.25%
▷ Protected methods00.00%
▷ Private methods2843.75%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected