Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▼5.50ms] Passed 4 tests
An overview of server-side resources used by Casino Review affiliate Plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 37.07 ▼6.22 |
Dashboard /wp-admin | 3.39 ▲0.08 | 48.88 ▼2.87 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 47.22 ▼2.22 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 84.95 ▼10.70 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 41.89 ▲4.28 |
Document /wp-admin/edit.php?post_type=casino_review&page=casino_review_document | 3.27 | 31.94 |
Plugin Casinos /wp-admin/edit.php?post_type=casino_review | 3.35 | 40.63 |
Add New Casino /wp-admin/post-new.php?post_type=casino_review | 3.36 | 47.54 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Casino Review affiliate Plugin
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,876 ▲115 | 13.58 ▼0.79 | 2.20 ▲0.35 | 41.13 ▼6.51 |
Dashboard /wp-admin | 2,252 ▲52 | 5.84 ▼0.04 | 100.60 ▼14.43 | 43.15 ▼0.91 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 2.01 ▲0.00 | 35.09 ▼1.63 | 38.71 ▼0.15 |
Add New Post /wp-admin/post-new.php | 1,571 ▲26 | 23.18 ▲0.04 | 639.81 ▼56.87 | 57.13 ▲4.04 |
Media Library /wp-admin/upload.php | 1,428 ▲25 | 4.23 ▲0.06 | 100.51 ▼6.98 | 40.36 ▼5.83 |
Document /wp-admin/edit.php?post_type=casino_review&page=casino_review_document | 887 | 2.05 | 25.06 | 31.55 |
Plugin Casinos /wp-admin/edit.php?post_type=casino_review | 1,100 | 1.94 | 30.11 | 30.01 |
Add New Casino /wp-admin/post-new.php?post_type=casino_review | 1,761 | 3.65 | 65.10 | 31.88 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
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 no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/casino-review/includes/plugin-setup.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots need descriptions #1, #2 in casino-review/assets to your readme.txt
casino-review/casino_review.php 92% from 13 tests
Analyzing the main PHP file in "Casino Review affiliate Plugin" version 2.38
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("casino-review.php" instead of "casino_review.php")
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
Success! There were no dangerous files found in this plugin269 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 175 | 28 | 268 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/casino.png | 9.12KB | 3.62KB | ▼ 60.25% |