79% seo4cms

Code Review | SEO4CMS

WordPress plugin SEO4CMS scored 79% from 54 tests.

About plugin

  • Plugin page: seo4cms
  • Plugin version: 1.0.7.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2.1-5.3.1
  • WordPress version: 6.3.1
  • First release: Dec 16, 2019
  • Latest release: Jan 7, 2020
  • Number of updates: 31
  • Update frequency: every 0.7 days
  • Top authors: goldorange (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

Server metrics [RAM: ▼1.93MB] [CPU: ▼50.67ms] Passed 4 tests

An overview of server-side resources used by SEO4CMS
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.05 ▼1.415.24 ▼34.14
Dashboard /wp-admin2.07 ▼1.239.04 ▼42.33
Posts /wp-admin/edit.php2.07 ▼1.286.11 ▼38.41
Add New Post /wp-admin/post-new.php2.07 ▼3.816.89 ▼87.78
Media Library /wp-admin/upload.php2.07 ▼1.165.36 ▼24.06

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

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

Browser metrics Passed 4 tests

SEO4CMS: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8113.21 ▼1.302.02 ▲0.4243.08 ▼2.63
Dashboard /wp-admin2,219 ▲315.83 ▼0.0595.60 ▼19.4137.88 ▼11.35
Posts /wp-admin/edit.php2,105 ▲162.01 ▲0.0235.14 ▲0.7132.46 ▼0.20
Add New Post /wp-admin/post-new.php6,485 ▲4,95220.40 ▼2.63972.16 ▲319.1859.17 ▲6.06
Media Library /wp-admin/upload.php1,407 ▲224.32 ▲0.0495.57 ▼1.9344.47 ▼1.12

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin cannot be uninstalled
    • > User notice in wp-includes/functions.php+5905
    Function wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the seo4cms-js handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5, #6, #7, #8 in seo4cms/assets to your readme.txt
The official readme.txt is a good inspiration

seo4cms/seo4cms.php 92% from 13 tests

The primary PHP file in "SEO4CMS" version 1.0.7.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 381 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin112 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2152293
CSS14019
JavaScript1010

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
_inc/img/seo4cms-logo.png5.75KB6.21KB0.00%