Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.07MB] [CPU: ▼4.70ms] Passed 4 tests
An overview of server-side resources used by Landline Remover
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 40.39 ▼1.32 |
Dashboard /wp-admin | 3.38 ▲0.07 | 47.79 ▼5.05 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 45.31 ▼0.91 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 86.62 ▼11.29 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 36.83 ▼1.14 |
Settings /wp-admin/admin.php?page=wp-landline-remover-api-settings | 3.27 | 33.82 |
Number Checker /wp-admin/admin.php?page=wp-landline-remover-api-number-checker | 3.27 | 38.40 |
Server storage [IO: ▲0.79MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Landline Remover: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲63 | 14.36 ▲0.07 | 2.05 ▲0.57 | 45.76 ▲5.39 |
Dashboard /wp-admin | 2,230 ▲49 | 5.82 ▲0.07 | 94.52 ▼11.67 | 33.55 ▼9.90 |
Posts /wp-admin/edit.php | 2,135 ▲35 | 2.31 ▲0.32 | 35.93 ▼2.45 | 34.91 ▲0.74 |
Add New Post /wp-admin/post-new.php | 1,719 ▲193 | 24.93 ▲1.94 | 604.39 ▼80.32 | 51.46 ▼17.37 |
Media Library /wp-admin/upload.php | 1,504 ▲101 | 4.38 ▲0.16 | 102.66 ▼2.73 | 44.91 ▼1.58 |
Settings /wp-admin/admin.php?page=wp-landline-remover-api-settings | 830 | 1.87 | 25.83 | 22.46 |
Number Checker /wp-admin/admin.php?page=wp-landline-remover-api-number-checker | 873 | 1.87 | 28.97 | 25.50 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 4× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/landline-remover/admin/partials/wp-landline-remover-api-remaining-credits-display.php
- > /wp-content/plugins/landline-remover/admin/partials/wp-landline-remover-api-admin-display.php
- > /wp-content/plugins/landline-remover/admin/partials/wp-landline-remover-api-number-checker-display.php
- > /wp-content/plugins/landline-remover/public/partials/wp-landline-remover-api-public-display.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/landline-remover/admin/partials/wp-landline-remover-api-settings-display.php:39
- > PHP Fatal error
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: api, landline remover api
landline-remover/wp-landline-remover-api.php 77% from 13 tests
This is the main PHP file of "Landline Remover" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Main file name: It is recommended to name the main PHP file as the plugin slug ("landline-remover.php" instead of "wp-landline-remover-api.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 532 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin370 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 133 | 559 | 353 |
JavaScript | 3 | 2 | 33 | 12 |
CSS | 3 | 1 | 14 | 5 |
PHP code Passed 2 tests
Analyzing 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 code | 0.30 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 1.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 2 | 7.41% |
▷ Public methods | 22 | 81.48% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 18.52% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.47MB with 0.34MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon/logo.png | 107.90KB | 30.06KB | ▼ 72.14% |
assets/screenshot-2.png | 185.15KB | 45.99KB | ▼ 75.16% |
assets/icon/FAVICON.png | 1.82KB | 0.68KB | ▼ 62.35% |
assets/screenshot-1.png | 186.78KB | 41.92KB | ▼ 77.56% |