90% anchors-away

Code Review | Anchors Away

WordPress plugin Anchors Away scored90%from 54 tests.

About plugin

  • Plugin page: anchors-away
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-3.9
  • WordPress version: 6.3.1
  • First release: Sep 20, 2014
  • Latest release: Sep 20, 2014
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: tleen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /775 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 gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.68ms] Passed 4 tests

A check of server-side resources used by Anchors Away
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0144.38 ▼0.19
Dashboard /wp-admin3.32 ▲0.0247.69 ▼16.29
Posts /wp-admin/edit.php3.37 ▲0.0153.56 ▼4.16
Add New Post /wp-admin/post-new.php5.90 ▲0.0195.27 ▼6.07
Media Library /wp-admin/upload.php3.24 ▲0.0140.49 ▲1.33

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Anchors Away
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,889 ▲12813.51 ▼0.879.56 ▲7.7942.49 ▼5.75
Dashboard /wp-admin2,211 ▲375.64 ▲0.0492.29 ▼24.4242.69 ▼11.78
Posts /wp-admin/edit.php2,116 ▲132.06 ▲0.0440.07 ▼13.8437.41 ▲0.69
Add New Post /wp-admin/post-new.php1,560 ▲2923.50 ▲0.32687.31 ▲10.2852.69 ▼1.50
Media Library /wp-admin/upload.php1,419 ▲194.15 ▼0.07100.56 ▼8.8245.55 ▼0.49

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === anchors-away === )
You can take inspiration from this readme.txt

anchors-away/anchors-away.php Passed 13 tests

The main PHP file in "Anchors Away" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
77 characters long description:
Disable links on your (non-administrative) pages with optional popup message.

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 plugin59 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1131448
JavaScript11011

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions6
▷ Named functions6100.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
PNG images were not found in this plugin