Benchmarks
Plugin footprint 65% 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.12MB] [CPU: ▼5.63ms] 75% from 4 tests
This is a short check of server-side resources used by Raptive Affiliate
Please take the time to fix the following items
- CPU: Total CPU usage should be kept under 500.00ms (currently 4,241.95ms on /wp-admin/admin.php?page=recommend_links)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 43.46 ▼1.83 |
Dashboard /wp-admin | 3.45 ▲0.14 | 54.56 ▲0.82 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 47.99 ▼2.11 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 86.75 ▼19.40 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 39.15 ▲2.65 |
Import Links /wp-admin/admin.php?page=import_links | 3.34 | 34.60 |
Recommendations /wp-admin/admin.php?page=recommend_links | 3.58 | 4,241.95 |
Last Action /wp-admin/admin.php?page=rapaf_rollback | 3.34 | 36.38 |
Server storage [IO: ▲0.91MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 30 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_termmeta_audit_trail |
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Raptive Affiliate
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲50 | 13.74 ▼0.82 | 1.69 ▼0.22 | 44.08 ▼0.90 |
Dashboard /wp-admin | 2,242 ▲62 | 5.46 ▼0.21 | 119.15 ▲26.22 | 39.26 ▼6.04 |
Posts /wp-admin/edit.php | 2,147 ▲50 | 2.73 ▲0.73 | 49.38 ▲12.16 | 36.54 ▲1.69 |
Add New Post /wp-admin/post-new.php | 1,567 ▲41 | 23.66 ▲0.05 | 677.52 ▲53.87 | 36.75 ▼13.49 |
Media Library /wp-admin/upload.php | 1,447 ▲47 | 4.91 ▲0.70 | 116.63 ▲6.00 | 42.45 ▼1.18 |
Import Links /wp-admin/admin.php?page=import_links | 848 | 2.48 | 40.11 | 28.29 |
Recommendations /wp-admin/admin.php?page=recommend_links | 826 | 2.54 | 41.09 | 26.57 |
Last Action /wp-admin/admin.php?page=rapaf_rollback | 832 | 2.31 | 39.21 | 26.63 |
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
Please fix the following items
- The uninstall procedure failed, leaving 1 table in the database
- wp_termmeta_audit_trail
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 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 50% 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
Please fix the following items
- 5× 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/raptive-affiliate/includes/admin/class-rapaf-link-inserter.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/raptive-affiliate/includes/admin/class-rapaf-import-links.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/raptive-affiliate/includes/admin/class-rapaf-admin-menu.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/raptive-affiliate/includes/admin/class-rapaf-rollback.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/raptive-affiliate/includes/admin/class-rapaf-recommend-links.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Donate link: Invalid URI ("")
raptive-affiliate/raptive-affiliate.php 92% from 13 tests
The principal PHP file in "Raptive Affiliate" v. 1.0.4 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Requires PHP: Required version must match the one declared in readme.txt ("5.4" instead of "5.6")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin10,545 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 9,002 |
PHP | 12 | 368 | 356 | 1,271 |
CSS | 2 | 32 | 12 | 104 |
Sass | 1 | 13 | 0 | 98 |
JavaScript | 6 | 32 | 91 | 70 |
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.32 |
Average class complexity | 15.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 3.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 66 | |
▷ Static methods | 59 | 89.39% |
▷ Public methods | 64 | 96.97% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 3.03% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
5 PNG files occupy 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icons/imgur_yellow_warning.png | 4.46KB | 1.51KB | ▼ 66.10% |
assets/icons/imgur_blue_info.png | 4.30KB | 1.51KB | ▼ 64.82% |
assets/icon-128x128.png | 6.20KB | 1.65KB | ▼ 73.34% |
assets/icons/imgur_red_alert.png | 4.24KB | 1.48KB | ▼ 65.18% |
assets/icons/imgur_green_check.png | 4.34KB | 1.51KB | ▼ 65.32% |