Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼2.39ms] Passed 4 tests
A check of server-side resources used by Affiliate CodeCanyon Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 43.17 ▲4.31 |
Dashboard /wp-admin | 3.41 ▲0.11 | 49.62 ▲4.25 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 46.69 ▼2.33 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 84.78 ▼10.79 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 35.80 ▼0.70 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_pb_codecanyon_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Affiliate CodeCanyon Widget
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲67 | 14.82 ▲0.44 | 1.80 ▼0.01 | 44.32 ▼1.98 |
Dashboard /wp-admin | 2,209 ▲18 | 5.81 ▲0.92 | 98.40 ▼4.12 | 42.49 ▼1.01 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 1.98 ▼0.07 | 35.03 ▲0.63 | 31.45 ▼1.46 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 18.34 ▼4.83 | 624.86 ▼39.92 | 53.01 ▼6.92 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.20 ▲0.01 | 94.37 ▼1.35 | 42.07 ▼1.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_pb_codecanyon_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
Please fix the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/affiliate-codecanyon-widget/inc/class-codecanyon-widget.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/affiliate-codecanyon-widget/affiliate-codecanyon-widget.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
9 plugin tags: ad, advertising, widget, ads, codecanyon...
affiliate-codecanyon-widget/affiliate-codecanyon-widget.php Passed 13 tests
Analyzing the main PHP file in "Affiliate CodeCanyon Widget" version 1.1
73 characters long description:
Display CodeCanyon items as a WordPress widget with your affiliate links.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin447 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 104 | 20 | 405 |
JavaScript | 1 | 3 | 1 | 24 |
CSS | 1 | 1 | 0 | 18 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 61.00 |
▷ Minimum class complexity | 61.00 |
▷ Maximum class complexity | 61.00 |
Average method complexity | 5.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.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 | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin