Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.66MB] [CPU: ▼20.17ms] Passed 4 tests
Server-side resources used by CartoPress
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 42.24 ▼3.39 |
Dashboard /wp-admin | 3.35 ▼0.00 | 50.51 ▼13.99 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 48.35 ▼2.97 |
Add New Post /wp-admin/post-new.php | 3.20 ▼2.69 | 39.15 ▼58.93 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 33.02 ▼4.37 |
CartoPress /wp-admin/options-general.php?page=cartopress-settings | 3.28 | 27.70 |
Server storage [IO: ▲0.63MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for CartoPress
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 14.48 ▼0.13 | 1.97 ▲0.31 | 44.33 ▲2.32 |
Dashboard /wp-admin | 2,210 ▲22 | 4.87 ▼1.03 | 118.53 ▲9.77 | 43.12 ▼4.11 |
Posts /wp-admin/edit.php | 2,126 ▲37 | 2.05 ▲0.02 | 36.73 ▲1.53 | 33.22 ▲0.46 |
Add New Post /wp-admin/post-new.php | 1,539 ▲25 | 23.09 ▲5.40 | 652.93 ▼29.67 | 54.07 ▲3.14 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.20 ▼0.00 | 98.72 ▲1.13 | 43.49 ▼2.56 |
CartoPress /wp-admin/options-general.php?page=cartopress-settings | 1,025 | 2.06 | 27.51 | 83.31 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=cartopress-settings
- > Warning in wp-content/plugins/cartopress/admin/cp-settings.php+402
Illegal string offset 'cartopress_collect_posts'
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=cartopress-settings
- > Warning in wp-content/plugins/cartopress/admin/cp-settings.php+421
Illegal string offset 'cartopress_collect_pages'
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=cartopress-settings
- > Warning in wp-content/plugins/cartopress/admin/cp-settings.php+440
Illegal string offset 'cartopress_collect_media'
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=cartopress-settings
- > Warning in wp-content/plugins/cartopress/admin/cp-settings.php+269
Illegal string offset 'cartopress_sync_postcontent'
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=cartopress-settings
- > Warning in wp-content/plugins/cartopress/admin/cp-settings.php+288
Illegal string offset 'cartopress_sync_categories'
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=cartopress-settings
- > Warning in wp-content/plugins/cartopress/admin/cp-settings.php+307
Illegal string offset 'cartopress_sync_tags'
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=cartopress-settings
- > Warning in wp-content/plugins/cartopress/admin/cp-settings.php+326
Illegal string offset 'cartopress_sync_featuredimage'
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=cartopress-settings
- > Warning in wp-content/plugins/cartopress/admin/cp-settings.php+383
Illegal string offset 'cartopress_sync_format'
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=cartopress-settings
- > Warning in wp-content/plugins/cartopress/admin/cp-settings.php+364
Illegal string offset 'cartopress_sync_author'
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=cartopress-settings
- > Warning in wp-content/plugins/cartopress/admin/cp-settings.php+345
Illegal string offset 'cartopress_sync_customfields'
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
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function checked() in wp-content/plugins/cartopress/admin/cp-geocoderview.php:44
- > PHP Notice
Undefined variable: cartodb_id in wp-content/plugins/cartopress/admin/cp-geocoderview.php on line 41
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/cartopress/cartopress.php:97
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/cartopress/admin/cp-options.php:19
- > PHP Warning
Use of undefined constant CARTOPRESS_URL - assumed 'CARTOPRESS_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/cartopress/admin/cp-options.php on line 14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
- Plugin Name: Please specify the plugin name on the first line (
=== cartopress ===
)
cartopress/cartopress.php 92% from 13 tests
The main PHP script in "CartoPress" version 1.0.1 is automatically included on every request by WordPress
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 409 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin3,029 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 236 | 733 | 1,383 |
CSS | 4 | 162 | 27 | 1,055 |
JavaScript | 5 | 70 | 42 | 591 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 29.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 3.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 58 | |
▷ Static methods | 24 | 41.38% |
▷ Public methods | 54 | 93.10% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 6.90% |
Functions | 27 | |
▷ Named functions | 27 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
9 PNG files occupy 0.36MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/css/images/markers-shadow@2x.png | 1.43KB | 1.56KB | 0.00% |
admin/images/logos_full_cartodb_light.png | 169.80KB | 86.69KB | ▼ 48.95% |
admin/css/images/markers-shadow.png | 0.52KB | 0.74KB | 0.00% |
admin/css/images/markers-matte@2x.png | 30.38KB | 10.57KB | ▼ 65.23% |
admin/css/images/markers-soft@2x.png | 64.85KB | 16.05KB | ▼ 75.25% |