83% peps-media-seo

Code Review | PEPS Media SEO Simple

WordPress plugin PEPS Media SEO Simple scored83%from 54 tests.

About plugin

  • Plugin page: peps-media-seo
  • Plugin version: 3.11
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-6.4
  • WordPress version: 6.3.1
  • First release: Jan 8, 2020
  • Latest release: Nov 13, 2023
  • Number of updates: 57
  • Update frequency: every 24.7 days
  • Top authors: peps23 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,971 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼2.46ms] Passed 4 tests

A check of server-side resources used by PEPS Media SEO Simple
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0939.89 ▲3.60
Dashboard /wp-admin3.42 ▲0.1248.20 ▼3.27
Posts /wp-admin/edit.php3.56 ▲0.2055.96 ▲10.88
Add New Post /wp-admin/post-new.php6.03 ▲0.1485.69 ▼9.83
Media Library /wp-admin/upload.php3.34 ▲0.1135.06 ▼0.32

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

PEPS Media SEO Simple: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲4814.22 ▼0.101.74 ▲0.0838.61 ▼4.43
Dashboard /wp-admin2,213 ▲335.58 ▼0.0690.41 ▼9.1339.78 ▼7.37
Posts /wp-admin/edit.php2,283 ▲1863.65 ▲1.7095.39 ▲61.8035.37 ▼0.64
Add New Post /wp-admin/post-new.php6,326 ▲4,80026.08 ▲2.63923.10 ▲326.1545.46 ▼1.12
Media Library /wp-admin/upload.php1,412 ▲124.06 ▼0.1583.33 ▼18.4741.96 ▼1.57

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/peps-media-seo/uninstall.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Tags: There are too many tags (13 tag instead of maximum 10)
Please take inspiration from this readme.txt

peps-media-seo/pm-seo.php 85% from 13 tests

The main PHP file in "PEPS Media SEO Simple" ver. 3.11 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 405 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("peps-media-seo.php" instead of "pm-seo.php")

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
No dangerous file extensions were detected814 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP625295720
JavaScript110550
CSS17044

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions39
▷ Named functions3384.62%
▷ Anonymous functions615.38%
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
PNG images were not found in this plugin