79% appmaps

Code Review | AppMaps

WordPress plugin AppMaps scored79%from 54 tests.

About plugin

  • Plugin page: appmaps
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.3.2
  • WordPress version: 6.3.1
  • First release: Mar 15, 2012
  • Latest release: Apr 26, 2012
  • Number of updates: 7
  • Update frequency: every 51.3 days
  • Top authors: meloniq (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,823 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0442.54 ▲2.73
Dashboard /wp-admin3.35 ▲0.0047.72 ▼12.60
Posts /wp-admin/edit.php3.40 ▲0.0449.89 ▲4.78
Add New Post /wp-admin/post-new.php5.93 ▲0.0484.44 ▼12.78
Media Library /wp-admin/upload.php3.28 ▲0.0435.74 ▲0.99
AppMaps /wp-admin/options-general.php?page=appmaps3.2631.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,887 ▲11613.58 ▼0.805.31 ▲3.2842.85 ▲0.21
Dashboard /wp-admin2,208 ▲235.89 ▲0.94106.22 ▼12.6138.21 ▼11.24
Posts /wp-admin/edit.php2,097 ▲82.06 ▲0.0736.41 ▼4.6935.23 ▼0.52
Add New Post /wp-admin/post-new.php1,521 ▲223.42 ▲0.46674.41 ▲7.2266.29 ▼2.67
Media Library /wp-admin/upload.php1,399 ▲114.24 ▲0.0694.42 ▼19.8543.96 ▼3.60
AppMaps /wp-admin/options-general.php?page=appmaps9661.8830.8730.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP38472361
CSS21145

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 code0.27
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
screenshot-1.png192.61KB76.55KB▼ 60.26%