68% aoringo-cat-setter

Code Review | aoringo CAT setter

WordPress plugin aoringo CAT setter scored68%from 54 tests.

About plugin

  • Plugin page: aoringo-cat-setter
  • Plugin version: 0.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.5
  • WordPress version: 6.3.1
  • First release: Jan 21, 2013
  • Latest release: Jan 26, 2013
  • Number of updates: 6
  • Update frequency: every 14.7 days
  • Top authors: aoringo12 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /5,355 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.93MB] [CPU: ▼36.21ms] Passed 4 tests

This is a short check of server-side resources used by aoringo CAT setter
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0238.79 ▼6.31
Dashboard /wp-admin3.02 ▼0.2922.47 ▼36.06
Posts /wp-admin/edit.php3.02 ▼0.3423.46 ▼25.63
Add New Post /wp-admin/post-new.php3.02 ▼2.8727.63 ▼69.19
Media Library /wp-admin/upload.php3.02 ▼0.2124.18 ▼13.96
aoringo CAT setterの設定 /wp-admin/options-general.php?page=aoringo-cat-setter/aoringo_cat_setter.php3.0223.77

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-posts
catcat_rendo
aoringocat_installed
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by aoringo CAT setter
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.25 ▼0.101.93 ▲0.2942.22 ▲0.59
Dashboard /wp-admin2,202 ▲255.62 ▼0.0592.77 ▲3.7246.27 ▲5.15
Posts /wp-admin/edit.php2,104 ▲41.96 ▼0.0438.99 ▲2.3241.54 ▲6.62
Add New Post /wp-admin/post-new.php1,531 ▲523.00 ▼0.26637.70 ▼103.2763.33 ▲12.14
Media Library /wp-admin/upload.php1,398 ▼24.07 ▼0.15103.18 ▲0.1648.11 ▲3.62
aoringo CAT setterの設定 /wp-admin/options-general.php?page=aoringo-cat-setter/aoringo_cat_setter.php8412.0323.6591.83

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=aoringo-cat-setter/aoringo_cat_setter.php
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=aoringo-cat-setter/aoringo_cat_setter.php
    • > Notice in wp-content/plugins/aoringo-cat-setter/aoringo_cat_setter.php+79
    Undefined index: posted

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
Please fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function delete_option() in wp-content/plugins/aoringo-cat-setter/uninstall.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/aoringo-cat-setter/aoringo_cat_setter.php:41

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
1 plugin tags: autocategory

aoringo-cat-setter/aoringo_cat_setter.php 92% from 13 tests

"aoringo CAT setter" version 0.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("aoringo-cat-setter.php" instead of "aoringo_cat_setter.php")

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
Everything looks great! No dangerous files found in this plugin143 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP21118143

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions4
▷ Named functions4100.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
There were not PNG files found in your plugin