68% aoringo-tag-upper

Code Review | aoringo TAG upper

WordPress plugin aoringo TAG upper scored68%from 54 tests.

About plugin

  • Plugin page: aoringo-tag-upper
  • Plugin version: 0.1.6
  • 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: 5
  • Update frequency: every 1.2 days
  • Top authors: aoringo12 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /5,660 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼0.91MB] [CPU: ▼33.38ms] Passed 4 tests

Analyzing server-side resources used by aoringo TAG upper
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0436.34 ▼1.93
Dashboard /wp-admin3.04 ▼0.2722.79 ▼27.74
Posts /wp-admin/edit.php3.04 ▼0.3225.88 ▼23.33
Add New Post /wp-admin/post-new.php3.04 ▼2.8523.92 ▼70.66
Media Library /wp-admin/upload.php3.04 ▼0.2022.96 ▼11.79
aoringo TAG upperの設定 /wp-admin/options-general.php?page=aoringo-tag-upper/aoringo_tag_upper.php3.0424.09

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 10 new options
New WordPress options
widget_recent-posts
tagtag_ng
widget_theysaidso_widget
db_upgraded
tagtag_rendo
can_compress_scripts
tagtagjidou
aoringotag_installed
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for aoringo TAG upper
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.31 ▼1.123.66 ▲2.1138.16 ▼2.76
Dashboard /wp-admin2,210 ▲255.91 ▲0.1098.01 ▼2.8945.28 ▲6.02
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0034.45 ▼3.8535.60 ▼0.59
Add New Post /wp-admin/post-new.php1,536 ▲1723.34 ▼0.05656.55 ▼21.4063.99 ▼1.61
Media Library /wp-admin/upload.php1,389 ▼24.21 ▼0.0192.51 ▼5.1344.76 ▲0.78
aoringo TAG upperの設定 /wp-admin/options-general.php?page=aoringo-tag-upper/aoringo_tag_upper.php9362.1722.80106.17

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > 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
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=aoringo-tag-upper/aoringo_tag_upper.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-tag-upper/aoringo_tag_upper.php
    • > Notice in wp-content/plugins/aoringo-tag-upper/aoringo_tag_upper.php+139
    Undefined index: posted

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
Please fix the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/aoringo-tag-upper/aoringo_tag_upper.php:96
    • > PHP Fatal error
      Uncaught Error: Call to undefined function delete_option() in wp-content/plugins/aoringo-tag-upper/uninstall.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

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
2 plugin tags: tags, tag

aoringo-tag-upper/aoringo_tag_upper.php 92% from 13 tests

The main file in "aoringo TAG upper" v. 0.1.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("aoringo-tag-upper.php" instead of "aoringo_tag_upper.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
Good job! No executable or dangerous file extensions detected259 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP21226259

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.38
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