84% super-annotation

Code Review | Super annotation

WordPress plugin Super annotation scored 84% from 54 tests.

About plugin

  • Plugin page: super-annotation
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.2
  • WordPress version: 6.3.1
  • First release: Mar 30, 2023
  • Latest release: Apr 12, 2023
  • Number of updates: 64
  • Update frequency: every 0.2 days
  • Top authors: eventtex (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 165 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.90ms] Passed 4 tests

A check of server-side resources used by Super annotation
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.19 ▼3.31
Dashboard /wp-admin3.32 ▲0.0245.05 ▼2.94
Posts /wp-admin/edit.php3.37 ▲0.0250.45 ▲4.76
Add New Post /wp-admin/post-new.php5.90 ▲0.0295.91 ▼4.28
Media Library /wp-admin/upload.php3.24 ▲0.0236.38 ▲2.92

Server storage [IO: ▲0.03MB] [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, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Super annotation: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6713.31 ▼1.074.28 ▲2.5840.51 ▼10.34
Dashboard /wp-admin2,205 ▲175.80 ▲0.7497.39 ▼6.7541.40 ▼1.48
Posts /wp-admin/edit.php2,091 ▲52.00 ▼0.0239.08 ▲3.6335.08 ▲0.52
Add New Post /wp-admin/post-new.php1,544 ▲2723.41 ▲5.89627.98 ▲14.8350.23 ▼7.29
Media Library /wp-admin/upload.php1,393 ▲144.23 ▲0.0399.48 ▼0.6343.64 ▼0.29

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/super-annotation/super-annotation.php:21

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 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention: The official readme.txt might help

super-annotation/super-annotation.php Passed 13 tests

The principal PHP file in "Super annotation" v. 1.0.4 is loaded by WordPress automatically on each request
110 characters long description:
► This module allows you to add an annotation column in front of each extension in order to leave a comment.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin62 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1292562

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin