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.03MB] [CPU: ▼5.42ms] Passed 4 tests
Analyzing server-side resources used by AppMaps
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 42.54 ▲2.73 |
Dashboard /wp-admin | 3.35 ▲0.00 | 47.72 ▼12.60 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 49.89 ▲4.78 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 84.44 ▼12.78 |
Media Library /wp-admin/upload.php | 3.28 ▲0.04 | 35.74 ▲0.99 |
AppMaps /wp-admin/options-general.php?page=appmaps | 3.26 | 31.51 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 12 new options
New WordPress options |
---|
can_compress_scripts |
appmaps_lng |
appmaps_active |
appmaps_db_version |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
appmaps_gmaps_region |
widget_recent-posts |
appmaps_lat |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for AppMaps
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,887 ▲116 | 13.58 ▼0.80 | 5.31 ▲3.28 | 42.85 ▲0.21 |
Dashboard /wp-admin | 2,208 ▲23 | 5.89 ▲0.94 | 106.22 ▼12.61 | 38.21 ▼11.24 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.06 ▲0.07 | 36.41 ▼4.69 | 35.23 ▼0.52 |
Add New Post /wp-admin/post-new.php | 1,521 ▲2 | 23.42 ▲0.46 | 674.41 ▲7.22 | 66.29 ▼2.67 |
Media Library /wp-admin/upload.php | 1,399 ▲11 | 4.24 ▲0.06 | 94.42 ▼19.85 | 43.96 ▼3.60 |
AppMaps /wp-admin/options-general.php?page=appmaps | 966 | 1.88 | 30.87 | 30.11 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 12 options
- appmaps_gmaps_lang
- appmaps_db_version
- appmaps_active
- db_upgraded
- appmaps_gmaps_region
- theysaidso_admin_options
- can_compress_scripts
- appmaps_lat
- widget_recent-posts
- widget_theysaidso_widget
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Please fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/appmaps/appmaps.php
- 2× 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/appmaps/appmaps-functions.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/appmaps/appmaps-admin.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: maps, google maps, classipress, map, appthemes...
appmaps/appmaps.php Passed 13 tests
The entry point to "AppMaps" version 1.1 is a PHP file that has certain tags in its header comment area
124 characters long description:
Disables automatic updating geolocation in ClassiPress theme, and insert new box with map in admin to manually place marker.
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
Success! There were no dangerous files found in this plugin406 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 84 | 72 | 361 |
CSS | 2 | 1 | 1 | 45 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
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 | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 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
1 PNG file occupies 0.19MB with 0.11MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 192.61KB | 76.55KB | ▼ 60.26% |