90% wp-and-seo-trainer

Code Review | WP And SEO Trainer

WordPress plugin WP And SEO Trainer scored90%from 54 tests.

About plugin

  • Plugin page: wp-and-seo-trainer
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.6.1
  • WordPress version: 6.3.1
  • First release: Oct 7, 2016
  • Latest release: Oct 7, 2016
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: cybepe (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,022 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▲7.03ms] Passed 4 tests

An overview of server-side resources used by WP And SEO Trainer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0738.47 ▼0.96
Dashboard /wp-admin3.38 ▲0.0750.26 ▲1.43
Posts /wp-admin/edit.php3.43 ▲0.0770.14 ▲21.93
Add New Post /wp-admin/post-new.php5.98 ▲0.09128.90 ▲30.09
Media Library /wp-admin/upload.php3.30 ▲0.0744.86 ▲5.71

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP And SEO Trainer
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,507 ▲74625.98 ▲11.8259.86 ▲58.1040.61 ▼7.06
Dashboard /wp-admin2,916 ▲73914.81 ▲9.13339.36 ▲246.5840.46 ▼5.60
Posts /wp-admin/edit.php2,834 ▲73713.16 ▲11.17275.40 ▲239.0637.72 ▲3.58
Add New Post /wp-admin/post-new.php7,080 ▲5,52730.89 ▲7.531,174.30 ▲554.2337.22 ▼24.80
Media Library /wp-admin/upload.php1,695 ▲30412.80 ▲8.59353.81 ▲258.3446.64 ▲3.68

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
10 plugin tags: wp training, search engine optimization, onsite seo, seo, learn wp...

wp-and-seo-trainer/wp-and-seo-trainer.php 92% from 13 tests

The principal PHP file in "WP And SEO Trainer" v. 1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 456 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin398 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP26688318
CSS10375
JavaScript1415

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code1.65
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected