Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > User deprecated in wp-includes/functions.php+5453
Function wpdb::escape is deprecated since version 3.6.0! Use wpdb::prepare() or esc_sql() instead.
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.47ms] Passed 4 tests
A check of server-side resources used by Free Post Mail
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 49.89 ▲10.11 |
Dashboard /wp-admin | 3.32 ▲0.01 | 48.66 ▼4.46 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 50.44 ▲1.35 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 87.10 ▼12.53 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.40 ▼2.22 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_freePostMailTable |
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
freePostMail_db_version |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Free Post Mail
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲40 | 14.28 ▼0.11 | 1.76 ▲0.03 | 39.88 ▼4.11 |
Dashboard /wp-admin | 2,210 ▲30 | 5.58 ▲0.04 | 84.14 ▼5.39 | 38.25 ▼7.72 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 2.03 ▲0.00 | 40.55 ▲4.85 | 38.12 ▼3.40 |
Add New Post /wp-admin/post-new.php | 1,416 ▼112 | 20.54 ▼2.41 | 593.39 ▼44.84 | 62.53 ▲2.37 |
Media Library /wp-admin/upload.php | 1,415 ▲12 | 4.20 ▼0.00 | 98.67 ▼2.48 | 45.81 ▲3.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Requires at least: Invalid plugin version format
free-post-mail/index.php 85% from 13 tests
The principal PHP file in "Free Post Mail" v. 1.0 is loaded by WordPress automatically on each request
The following require your attention:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("free-post-mail.php" instead of "index.php")
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
Success! There were no dangerous files found in this plugin1,149 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 315 | 78 | 532 |
PHP | 4 | 179 | 17 | 341 |
CSS | 2 | 152 | 0 | 276 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 3.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin