10% simple-seo-categories-posts

Code Review | Simple Category Posts

WordPress plugin Simple Category Posts scored10%from 54 tests.

About plugin

  • Plugin page: simple-seo-catego...
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.1.1
  • WordPress version: 6.3.1
  • First release: Dec 9, 2012
  • Latest release: Apr 20, 2015
  • Number of updates: 10
  • Update frequency: every 88.9 days
  • Top authors: spyrosvl (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active /9,740 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/simple-seo-categories-posts/simplecategoryposts.php+12
    Methods with the same name as their class will not be constructors in a future version of PHP; simpleCategoryPosts has a deprecated constructor

Server metrics [RAM: ▼1.77MB] [CPU: ▼54.33ms] Passed 4 tests

A check of server-side resources used by Simple Category Posts
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.22 ▼1.245.81 ▼34.95
Dashboard /wp-admin2.24 ▼1.106.08 ▼53.64
Posts /wp-admin/edit.php2.24 ▼1.115.91 ▼38.19
Add New Post /wp-admin/post-new.php2.24 ▼3.646.60 ▼90.52
Media Library /wp-admin/upload.php2.24 ▼0.985.25 ▼29.05

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_simplecategorypostswidget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Simple Category Posts
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.29 ▼1.021.67 ▼0.2742.09 ▼1.98
Dashboard /wp-admin2,206 ▲155.88 ▲0.06106.78 ▼0.4538.32 ▼4.45
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0337.55 ▲1.7533.61 ▼4.88
Add New Post /wp-admin/post-new.php1,548 ▲2921.12 ▼1.90633.41 ▼13.4057.08 ▼5.90
Media Library /wp-admin/upload.php1,385 ▼04.28 ▲0.0799.73 ▲1.7843.67 ▲2.07

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
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/simple-seo-categories-posts/simplecategoryposts.php+12
    Methods with the same name as their class will not be constructors in a future version of PHP; simpleCategoryPosts has a deprecated constructor
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_simplecategorypostswidget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/simple-seo-categories-posts/simplecategoryposts.php:12

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === simple-seo-categories-posts === )
You can look at the official readme.txt

simple-seo-categories-posts/simplecategoryposts.php 92% from 13 tests

Analyzing the main PHP file in "Simple Category Posts" version 1.0.4
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simple-seo-categories-posts.php" instead of "simplecategoryposts.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
Success! There were no dangerous files found in this plugin1,286 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP21421231,286

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity130.00
▷ Minimum class complexity52.00
▷ Maximum class complexity208.00
Average method complexity7.62
▷ Minimum method complexity1.00
▷ Maximum method complexity65.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods39
▷ Static methods37.69%
▷ Public methods923.08%
▷ Protected methods3076.92%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants49
▷ Global constants49100.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
screenshot-1.png10.80KB9.97KB▼ 7.70%