84% ilannotations

Code Review | ILAnnotations

WordPress plugin ILAnnotations scored84%from 54 tests.

About plugin

  • Plugin page: ilannotations
  • Plugin version: 0.9.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0
  • WordPress version: 6.3.1
  • First release: Oct 5, 2014
  • Latest release: Oct 6, 2014
  • Number of updates: 3
  • Update frequency: every 1.3 days
  • Top authors: lukaiser (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,059 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.64ms] Passed 4 tests

Analyzing server-side resources used by ILAnnotations
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0436.06 ▼1.68
Dashboard /wp-admin3.33 ▲0.0345.85 ▼4.29
Posts /wp-admin/edit.php3.39 ▲0.0346.38 ▲1.32
Add New Post /wp-admin/post-new.php5.92 ▲0.0382.40 ▼8.36
Media Library /wp-admin/upload.php3.26 ▲0.0334.47 ▼4.21

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for ILAnnotations
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,906 ▲16013.56 ▼1.1016.49 ▲14.8340.08 ▲1.38
Dashboard /wp-admin2,195 ▲185.65 ▲0.0792.62 ▲2.1146.62 ▲7.85
Posts /wp-admin/edit.php2,103 ▲241.98 ▼0.0035.57 ▼1.9129.61 ▼7.52
Add New Post /wp-admin/post-new.php1,536 ▲1018.35 ▼5.27631.66 ▲3.7375.72 ▼0.29
Media Library /wp-admin/upload.php1,394 ▼64.21 ▲0.0198.60 ▼5.5742.65 ▼0.35

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/ilannotations/ilannotations.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: highlight, annotations, comments

ilannotations/ilannotations.php Passed 13 tests

This is the main PHP file of "ILAnnotations" version 0.9.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
80 characters long description:
Adds the Annotation functionality to the existing commenting system of Wordpress

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
There were no executable files found in this plugin1,036 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript483108576
PHP548200341
CSS13090
HTML15029

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity20.00
▷ Minimum class complexity9.00
▷ Maximum class complexity26.00
Average method complexity3.85
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods20
▷ Static methods840.00%
▷ Public methods1995.00%
▷ Protected methods00.00%
▷ Private methods15.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
_inc/icon.png2.98KB2.36KB▼ 20.73%