Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.24MB] [CPU: ▼143.53ms] Passed 4 tests
A check of server-side resources used by AMP Revolution
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.94 ▲0.22 | 32.11 ▲10.67 |
Dashboard /wp-admin | 3.36 ▲0.31 | 50.96 ▲5.58 |
Posts /wp-admin/edit.php | 3.42 ▲0.31 | 53.64 ▲6.53 |
Add New Post /wp-admin/post-new.php | 5.64 ▲0.20 | 90.99 ▼585.03 |
Media Library /wp-admin/upload.php | 3.22 ▲0.22 | 37.82 ▼1.21 |
Install Plugins /wp-admin/admin.php?page=required-plugins | 3.32 | 31.99 |
AMP Revolution /wp-admin/admin.php?page=amp-revolution | 3.23 | 36.16 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 4 new options
New WordPress options |
---|
customcss |
integrator |
optimizator |
personalizator |
Browser metrics Passed 4 tests
An overview of browser requirements for AMP Revolution
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,990 ▲394 | 18.11 ▲2.21 | 7.75 ▲0.03 | 48.32 ▼4.65 |
Dashboard /wp-admin | 3,254 ▲324 | 8.11 ▲1.97 | 174.47 ▲4.11 | 128.14 ▲5.45 |
Posts /wp-admin/edit.php | 3,068 ▲329 | 4.31 ▲1.63 | 91.51 ▲21.75 | 108.16 ▲13.59 |
Add New Post /wp-admin/post-new.php | 1,751 ▲170 | 18.43 ▲2.00 | 351.07 ▼129.04 | 132.07 ▲8.56 |
Media Library /wp-admin/upload.php | 1,915 ▲111 | 4.93 ▼0.11 | 121.27 ▼27.51 | 129.23 ▲9.82 |
Install Plugins /wp-admin/admin.php?page=required-plugins | 1,578 | 3.94 | 79.55 | 81.63 |
AMP Revolution /wp-admin/admin.php?page=amp-revolution | 3,729 | 5.55 | 154.71 | 119.42 |
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 detected upon uninstall: 4 options
- optimizator
- integrator
- customcss
- personalizator
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_single() in wp-content/plugins/amp-revolution/views/FrontEnd/related-posts.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function post_password_required() in wp-content/plugins/amp-revolution/views/FrontEnd/comments.php:1
- > PHP Fatal error
Uncaught Error: Class 'ARSCP_AMP_Revolution' not found in wp-content/plugins/amp-revolution/views/FrontEnd/analyticsCode.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/amp-revolution/views/FrontEnd/header-bar.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/amp-revolution/views/FrontEnd/footer.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=amp-revolution
- > Network (severe)
https://www.savagecodes.com/wp-content/uploads/2015/06/logo.png - Failed to load resource: the server responded with a status of 404 ()
Optimizations
Plugin configuration 96% from 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
2 plugin tags: amp, mobile
amp-revolution/ARSCP-AMP-revolution.php 92% from 13 tests
The entry point to "AMP Revolution" version 0.1.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("amp-revolution.php" instead of "ARSCP-AMP-revolution.php")
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
Success! There were no dangerous files found in this plugin3,201 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 691 | 1,848 | 3,201 |
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.47 |
Average class complexity | 32.92 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 207.00 |
Average method complexity | 3.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 157 | |
▷ Static methods | 6 | 3.82% |
▷ Public methods | 134 | 85.35% |
▷ Protected methods | 23 | 14.65% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.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