Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/easy-text-links/EzOptions.php+21
Methods with the same name as their class will not be constructors in a future version of PHP; EzBaseOption has a deprecated constructor
Server metrics [RAM: ▼1.63MB] [CPU: ▼60.69ms] Passed 4 tests
This is a short check of server-side resources used by Easy Text Links
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.36 ▼1.11 | 6.02 ▼37.05 |
Dashboard /wp-admin | 2.38 ▼0.93 | 9.22 ▼38.98 |
Posts /wp-admin/edit.php | 2.38 ▼0.98 | 7.89 ▼39.60 |
Add New Post /wp-admin/post-new.php | 2.38 ▼3.51 | 8.25 ▼127.13 |
Media Library /wp-admin/upload.php | 2.38 ▼0.85 | 6.94 ▼27.81 |
Server storage [IO: ▲0.53MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Easy Text Links
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,803 ▲42 | 14.40 ▲0.13 | 1.67 ▲0.06 | 44.53 ▲4.30 |
Dashboard /wp-admin | 2,206 ▲32 | 5.74 ▲0.19 | 87.41 ▼0.19 | 37.51 ▼3.71 |
Posts /wp-admin/edit.php | 2,114 ▲14 | 2.16 ▲0.15 | 37.58 ▲0.92 | 35.07 ▼2.04 |
Add New Post /wp-admin/post-new.php | 1,537 ▲9 | 23.31 ▲0.23 | 652.40 ▼28.46 | 64.94 ▼1.03 |
Media Library /wp-admin/upload.php | 1,414 ▲14 | 4.33 ▲0.13 | 95.48 ▼1.91 | 43.48 ▲1.06 |
Easy Text Links Lite /wp-admin/easy-text-links.php | 26 | 0.42 | 0.09 | 14.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/easy-text-links/EzOptions.php+21
Methods with the same name as their class will not be constructors in a future version of PHP; EzBaseOption has a deprecated constructor
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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
Please fix the following items
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/easy-text-links/myPlugins.php:300
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/easy-text-links/adminPage.php:20
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/easy-text-links/ezDenyLite.php on line 22
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/easy-text-links/ezDenyLite.php on line 22
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/easy-text-links/ezDenyLite.php on line 22
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/easy-text-links/EzOptions.php:544
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- > GET request to /wp-admin/easy-text-links.php
- > Network (severe)
wp-admin/easy-text-links.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: text links, text ads, expiring links, link ads, advertising...
easy-text-links/easy-text-links.php Passed 13 tests
"Easy Text Links" version 3.00's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
115 characters long description:
Lite Version: Make money from your blog by direct text link ad selling, with no complicated setup and no middlemen.
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
No dangerous file extensions were detected3,887 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 315 | 109 | 2,512 |
JavaScript | 2 | 70 | 138 | 1,275 |
CSS | 1 | 3 | 0 | 100 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 12.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 2.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 142 | |
▷ Static methods | 9 | 6.34% |
▷ Public methods | 142 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 2 | 50.00% |
▷ Anonymous functions | 2 | 50.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
15 PNG files occupy 0.12MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
expiry.png | 0.31KB | 0.27KB | ▼ 12.46% |
email.png | 0.49KB | 0.49KB | 0.20% |
add.png | 0.45KB | 0.60KB | 0.00% |
img/ezpaypal.png | 9.22KB | 3.44KB | ▼ 62.72% |
confirm.png | 0.67KB | 0.69KB | 0.00% |