84% seos

Code Review | SEOS

WordPress plugin SEOS scored84%from 54 tests.

About plugin

  • Plugin page: seos
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3.2-5.5.1
  • WordPress version: 6.3.1
  • First release: Nov 14, 2016
  • Latest release: Nov 20, 2020
  • Number of updates: 24
  • Update frequency: every 61.0 days
  • Top authors: seosbg (100%)

Code review

54 tests

User reviews

1 review

Install metrics

700+ active /10,562 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼1.08ms] Passed 4 tests

Server-side resources used by SEOS
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0347.00 ▲6.58
Dashboard /wp-admin3.35 ▲0.0156.72 ▼0.23
Posts /wp-admin/edit.php3.40 ▲0.0450.04 ▲5.23
Add New Post /wp-admin/post-new.php5.95 ▲0.0683.99 ▼15.90
Media Library /wp-admin/upload.php3.27 ▲0.0443.14 ▲8.43

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

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

Browser metrics Passed 4 tests

SEOS: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,904 ▲15813.46 ▼0.861.87 ▲0.0844.16 ▲4.82
Dashboard /wp-admin2,286 ▲955.19 ▲0.26117.45 ▲10.2990.92 ▲46.24
Posts /wp-admin/edit.php2,153 ▲642.36 ▲0.3836.69 ▼0.9436.15 ▲5.05
Add New Post /wp-admin/post-new.php1,727 ▲20822.82 ▼0.26720.82 ▲55.2127.95 ▼28.91
Media Library /wp-admin/upload.php1,450 ▲654.47 ▲0.27104.38 ▲5.1183.48 ▲39.86

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/seos/inc/homepage-meta.php:3

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

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Admin Panel view of submitted form data.) image required
  • Tags: Too many tags (28 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

seos/seos.php Passed 13 tests

"SEOS" version 1.2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
62 characters long description:
SEOS — WordPress SEO Plugin. Simply amazing and easy to use.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected1,561 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP4115251,014
CSS4660357
PO File17683182
JavaScript1208

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.77
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/logo.png11.25KB4.39KB▼ 60.99%
images/icon.png1.58KB1.43KB▼ 9.69%