84% category-seo

Code Review | Category SEO

WordPress plugin Category SEO scored84%from 54 tests.

About plugin

  • Plugin page: category-seo
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.2-4.6
  • WordPress version: 6.3.1
  • First release: May 30, 2016
  • Latest release: Aug 13, 2016
  • Number of updates: 4
  • Update frequency: every 18.5 days
  • Top authors: 8suzuran8 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,309 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼8.93ms] Passed 4 tests

An overview of server-side resources used by Category SEO
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0541.79 ▲0.03
Dashboard /wp-admin3.36 ▲0.0549.49 ▼11.75
Posts /wp-admin/edit.php3.41 ▲0.0549.53 ▼4.93
Add New Post /wp-admin/post-new.php5.94 ▲0.0585.55 ▼19.05
Media Library /wp-admin/upload.php3.29 ▲0.0537.22 ▲3.08
Category SEO /wp-admin/plugins.php?page=category-seo3.2533.99

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

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

Browser metrics Passed 4 tests

Category SEO: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.72 ▲0.331.79 ▲0.1645.42 ▲6.70
Dashboard /wp-admin2,202 ▲315.62 ▲0.0984.57 ▼16.5336.16 ▼6.87
Posts /wp-admin/edit.php2,104 ▲11.97 ▲0.0135.81 ▼3.4134.05 ▼3.20
Add New Post /wp-admin/post-new.php1,532 ▲622.98 ▼0.02674.62 ▲53.1858.57 ▼9.64
Media Library /wp-admin/upload.php1,401 ▲74.16 ▼0.0196.17 ▼11.4544.46 ▼1.09
Category SEO /wp-admin/plugins.php?page=category-seo8442.0124.9729.44

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

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
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/category-seo/category-seo.php:33

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 97% 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:
  • Donate link: Invalid URI found ("")
Please take inspiration from this readme.txt

category-seo/category-seo.php Passed 13 tests

The main PHP file in "Category SEO" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
135 characters long description:
CategorySeo will be able to set to the string to be used in the title element to the registration screen and editing screen categories.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin228 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16424228

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions17
▷ Named functions17100.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 images were found in this plugin