Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.16ms] Passed 4 tests
A check of server-side resources used by Ads on Content AMP Pages
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.01 | 36.45 ▼4.51 |
Dashboard /wp-admin | 3.32 ▲0.01 | 45.66 ▼8.41 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 43.86 ▼3.81 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 89.03 ▼3.89 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.15 ▼0.60 |
Ads Content AMP /wp-admin/options-general.php?page=aacap_ads_content_amp | 3.20 | 30.42 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Ads on Content AMP Pages
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 14.48 ▼0.10 | 1.72 ▼0.12 | 39.96 ▼8.11 |
Dashboard /wp-admin | 2,210 ▲25 | 5.90 ▲1.02 | 100.41 ▼15.79 | 35.77 ▼11.06 |
Posts /wp-admin/edit.php | 2,075 ▼14 | 2.03 ▼0.02 | 35.57 ▼2.45 | 34.28 ▼5.13 |
Add New Post /wp-admin/post-new.php | 1,532 ▼1 | 18.63 ▼4.56 | 664.86 ▼16.69 | 69.57 ▲12.97 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.29 ▲0.02 | 92.61 ▼3.54 | 40.32 ▼4.71 |
Ads Content AMP /wp-admin/options-general.php?page=aacap_ads_content_amp | 842 | 2.02 | 23.10 | 33.94 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- 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)
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× 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/ads-on-content-amp-pages/ads-on-content-amp-pages.php:46
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: These screenshots require images: #1 (Settings), #2 (Ads on Content AMP Settings)
ads-on-content-amp-pages/ads-on-content-amp-pages.php Passed 13 tests
The principal PHP file in "Ads on Content AMP Pages" v. 1.0 is loaded by WordPress automatically on each request
84 characters long description:
Insert Ads WithIn your Post Content AMP Pages in WordPress, To Make Money from AMP .
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
There were no executable files found in this plugin101 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 26 | 12 | 101 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
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 | 8 | |
▷ Named functions | 8 | 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
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icon-256x256.png | 18.98KB | 8.17KB | ▼ 56.93% |
screenshot-1.png | 18.65KB | 7.36KB | ▼ 60.51% |
screenshot-2.png | 19.01KB | 8.18KB | ▼ 56.95% |