Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼293.39ms] Passed 4 tests
This is a short check of server-side resources used by azurecurve Conditional Page Links
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 36.08 ▲10.34 |
Dashboard /wp-admin | 3.07 ▲0.02 | 48.94 ▲3.87 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 40.78 ▼1.71 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 89.53 ▼1,173.00 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 36.54 ▼2.72 |
Conditional Links /wp-admin/admin.php?page=azc-cl | 2.96 | 28.06 |
Plugins /wp-admin/admin.php?page=azc-plugin-menus | 2.98 | 28.47 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 1 new option
New WordPress options |
---|
azc_cl |
Browser metrics Passed 4 tests
This is an overview of browser requirements for azurecurve Conditional Page Links
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,740 ▲134 | 16.18 ▲0.49 | 7.62 ▼1.98 | 46.39 ▼0.64 |
Dashboard /wp-admin | 2,990 ▲140 | 5.94 ▼0.05 | 130.74 ▲7.09 | 115.89 ▲10.80 |
Posts /wp-admin/edit.php | 2,745 ▲39 | 2.58 ▼0.10 | 63.63 ▼4.80 | 91.44 ▲3.54 |
Add New Post /wp-admin/post-new.php | 1,883 ▲230 | 19.28 ▲0.46 | 377.81 ▲29.48 | 116.66 ▲7.07 |
Media Library /wp-admin/upload.php | 1,757 ▼15 | 4.99 ▲0.00 | 123.13 ▼22.11 | 126.82 ▲8.37 |
Conditional Links /wp-admin/admin.php?page=azc-cl | 1,200 | 2.22 | 51.18 | 88.23 |
Plugins /wp-admin/admin.php?page=azc-plugin-menus | 1,091 | 2.09 | 53.57 | 65.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 1 option in the database
- azc_cl
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=azc-cl
- > Notice in wp-content/plugins/azurecurve-conditional-links/azurecurve-conditional-page-links.php+174
Trying to access array offset on value of type bool
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× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/azurecurve-conditional-links/azurecurve-conditional-page-links.php:37
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: page, links, pages, shortcode
azurecurve-conditional-links/azurecurve-conditional-page-links.php 69% from 13 tests
The principal PHP file in "azurecurve Conditional Page Links" v. 2.0.2 is loaded by WordPress automatically on each request
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 179 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("azurecurve-conditional-links.php" instead of "azurecurve-conditional-page-links.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Domain Path: The domain path points to a folder that does not exist ("/languages")
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 detected471 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 73 | 57 | 450 |
CSS | 2 | 0 | 4 | 21 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/Favicon-16x16.png | 0.40KB | 0.34KB | ▼ 14.81% |