Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼5.50ms] Passed 4 tests
Server-side resources used by Recommendations
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 37.05 ▼0.28 |
Dashboard /wp-admin | 3.41 ▲0.11 | 46.46 ▼1.46 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 46.95 ▼2.07 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 82.77 ▼17.81 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 33.06 ▼0.65 |
Providers /wp-admin/edit-tags.php?taxonomy=providers&post_type=recommends | 3.33 | 36.37 |
Add New Link /wp-admin/post-new.php?post_type=recommends | 3.37 | 43.70 |
Genre /wp-admin/edit-tags.php?taxonomy=genre&post_type=recommends | 3.33 | 34.12 |
Recommends /wp-admin/edit.php?post_type=recommends | 3.37 | 35.07 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Recommendations
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲66 | 14.25 ▼0.48 | 1.54 ▼0.05 | 37.24 ▼4.09 |
Dashboard /wp-admin | 2,233 ▲53 | 5.56 ▼0.10 | 87.56 ▼5.84 | 37.66 ▼10.19 |
Posts /wp-admin/edit.php | 2,138 ▲35 | 1.98 ▲0.01 | 39.97 ▼0.61 | 32.93 ▼4.90 |
Add New Post /wp-admin/post-new.php | 1,555 ▲20 | 23.23 ▲4.91 | 653.29 ▲37.83 | 62.42 ▼26.48 |
Media Library /wp-admin/upload.php | 1,438 ▲38 | 4.21 ▲0.02 | 104.41 ▲8.69 | 42.59 ▼0.94 |
Providers /wp-admin/edit-tags.php?taxonomy=providers&post_type=recommends | 1,281 | 2.12 | 27.09 | 30.25 |
Add New Link /wp-admin/post-new.php?post_type=recommends | 1,640 | 2.78 | 55.15 | 49.69 |
Genre /wp-admin/edit-tags.php?taxonomy=genre&post_type=recommends | 1,278 | 2.24 | 27.13 | 28.59 |
Recommends /wp-admin/edit.php?post_type=recommends | 1,098 | 1.96 | 30.25 | 31.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/recommendations/recommendations.php:74
- > 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)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: recommendations, recommend, out, links, affiliate...
recommendations/recommendations.php Passed 13 tests
The principal PHP file in "Recommendations" v. 0.3.3 is loaded by WordPress automatically on each request
121 characters long description:
Complete URL management system that allows you create, manage, and track outbound links from your site via 301 redirects.
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
Everything looks great! No dangerous files found in this plugin244 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 46 | 136 | 215 |
Markdown | 1 | 20 | 0 | 29 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 23.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 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
No PNG files were detected