Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.73ms] Passed 4 tests
This is a short check of server-side resources used by Rex Ad Cards WP
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.95 ▼3.68 |
Dashboard /wp-admin | 3.31 ▲0.01 | 42.95 ▼7.54 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 45.91 ▲0.33 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 82.70 ▼7.49 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 34.42 ▼0.21 |
Rex Ad Cards /wp-admin/options-general.php?page=rex-ad-cards | 3.23 | 32.31 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Rex Ad Cards WP
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 13.25 ▼0.91 | 1.61 ▼0.16 | 40.94 ▼7.03 |
Dashboard /wp-admin | 2,210 ▲22 | 4.86 ▼0.97 | 110.00 ▼7.78 | 40.41 ▼8.84 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.04 ▼0.01 | 39.28 ▲6.06 | 37.36 ▲1.38 |
Add New Post /wp-admin/post-new.php | 1,537 ▲2 | 22.96 ▲1.82 | 604.85 ▼71.28 | 45.10 ▼25.63 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.22 ▼0.06 | 93.59 ▼9.18 | 42.48 ▼4.52 |
Rex Ad Cards /wp-admin/options-general.php?page=rex-ad-cards | 828 | 2.02 | 23.51 | 45.90 |
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
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/rex-ad-cards/views/settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/rex-ad-cards/views/code-snippet-missing.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% 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
Attributes that need to be fixed:
- Tags: There are too many tags (15 tag instead of maximum 10)
rex-ad-cards/rex-ad-cards.php Passed 13 tests
Analyzing the main PHP file in "Rex Ad Cards WP" version 1.0
110 characters long description:
Display ads you created on https://www.rexadcards.com/ to promote your own products or those of your sponsors.
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
No dangerous file extensions were detected335 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 26 | 0 | 181 |
PHP | 3 | 45 | 21 | 154 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo.png | 27.51KB | 6.82KB | ▼ 75.20% |