Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.24MB] [CPU: ▲0.18ms] Passed 4 tests
Analyzing server-side resources used by LibraFire PinPoints
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.22 | 44.86 ▲3.89 |
Dashboard /wp-admin | 3.54 ▲0.24 | 54.76 ▲2.82 |
Posts /wp-admin/edit.php | 3.65 ▲0.30 | 55.23 ▲3.99 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.25 | 89.63 ▼7.54 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 38.85 ▲1.54 |
LF PinPoints /wp-admin/options-general.php?page=LF_PinPoints_settings | 3.46 | 43.83 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 27 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
librafire_pinpoints_version |
LF_PinPoints_version |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
LibraFire PinPoints: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,975 ▲229 | 13.89 ▼0.52 | 5.93 ▲3.87 | 39.27 ▼6.14 |
Dashboard /wp-admin | 2,242 ▲54 | 5.35 ▼0.51 | 118.91 ▲1.97 | 42.01 ▼1.66 |
Posts /wp-admin/edit.php | 2,124 ▲35 | 2.48 ▲0.47 | 41.09 ▲3.44 | 30.90 ▼7.85 |
Add New Post /wp-admin/post-new.php | 1,541 ▲8 | 23.22 ▼0.03 | 685.82 ▲26.27 | 37.08 ▼21.74 |
Media Library /wp-admin/upload.php | 1,415 ▲24 | 4.53 ▲0.32 | 105.25 ▲1.00 | 50.40 ▲4.97 |
LF PinPoints /wp-admin/options-general.php?page=LF_PinPoints_settings | 1,338 | 3.73 | 73.92 | 29.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- widget_theysaidso_widget
- LF_PinPoints_version
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
The following issues need your attention
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/librafire-pinpoints/templates/frontend-css-dynamic.php
- > /wp-content/plugins/librafire-pinpoints/templates/admin-css-dynamic.php
- > /wp-content/plugins/librafire-pinpoints/templates/single-dot-frontend.php
- 31× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: dotOptions in wp-content/plugins/librafire-pinpoints/templates/single-dot-frontend.php on line 19
- > PHP Notice
Undefined variable: coordinates in wp-content/plugins/librafire-pinpoints/templates/single-dot-frontend.php on line 13
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/librafire-pinpoints/templates/single-dot-frontend.php on line 13
- > PHP Notice
Undefined variable: single_dot in wp-content/plugins/librafire-pinpoints/templates/single-dot.php on line 14
- > PHP Notice
Undefined variable: coordinates in wp-content/plugins/librafire-pinpoints/templates/single-dot.php on line 10
- > PHP Notice
Trying to get property 'dot_id' of non-object in wp-content/plugins/librafire-pinpoints/templates/single-dot.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/librafire-pinpoints/includes/lib/class-lf-generate-editor.php:3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/librafire-pinpoints/templates/single-dot-frontend.php on line 12
- > PHP Notice
Undefined variable: coordinates in wp-content/plugins/librafire-pinpoints/templates/single-dot-frontend.php on line 12
- > PHP Notice
Undefined variable: post_dots_size in wp-content/plugins/librafire-pinpoints/templates/frontend-css-dynamic.php on line 4
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
- > GET request to /wp-admin/options-general.php?page=LF_PinPoints_settings
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,farbtastic,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/librafire-pinpoints/assets/js/admin.min.js?ver=1.0.0:96:36)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,farbtastic,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,farbtastic,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/options-general.php?page=LF_PinPoints_settings
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,farbtastic,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).live is not a function
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: Please describe screenshot #2 in librafire-pinpoints/assets to your readme.txt
- Tags: Please delete some tags, you are using 13 tag instead of maximum 10
librafire-pinpoints/lf-pinpoints.php 77% from 13 tests
The entry point to "LibraFire PinPoints" version 1.1.6 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("librafire-pinpoints.php" instead of "lf-pinpoints.php")
- Requires at least: Required version must be the same as the one declared in readme.txt ("3.5.1" instead of "4.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin2,399 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 304 | 468 | 1,026 |
JavaScript | 7 | 194 | 180 | 812 |
CSS | 3 | 14 | 2 | 547 |
JSON | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 63.00 |
Average method complexity | 3.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 45.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 7 | 14.29% |
▷ Public methods | 44 | 89.80% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 10.20% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
There are no PNG files in this plugin