Benchmarks
Plugin footprint 65% 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: ▲1.23MB] [CPU: ▲3.10ms] Passed 4 tests
This is a short check of server-side resources used by Plainview Activity Monitor
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.68 ▲1.21 | 49.55 ▲6.79 |
Dashboard /wp-admin | 4.54 ▲1.23 | 56.07 ▲6.72 |
Posts /wp-admin/edit.php | 4.59 ▲1.23 | 54.40 ▲5.49 |
Add New Post /wp-admin/post-new.php | 7.12 ▲1.23 | 92.03 ▼6.61 |
Media Library /wp-admin/upload.php | 4.46 ▲1.23 | 48.28 ▲14.46 |
Server storage [IO: ▲0.75MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 328 new files
Database: 1 new table, 11 new options
New tables |
---|
wp_pv_am_activities |
New WordPress options |
---|
Plainview_Activity_Monitor_activities_in_database |
Plainview_Activity_Monitor_refresh_timeout |
widget_recent-comments |
Plainview_Activity_Monitor_wp_login_failed_password |
Plainview_Activity_Monitor_debug_ips |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Plainview_Activity_Monitor_per_page |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Plainview Activity Monitor
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,884 ▲138 | 13.36 ▼1.04 | 1.78 ▲0.01 | 40.27 ▼3.66 |
Dashboard /wp-admin | 2,290 ▲102 | 4.98 ▲0.10 | 106.64 ▼1.08 | 39.10 ▼3.69 |
Posts /wp-admin/edit.php | 2,173 ▲84 | 2.22 ▲0.21 | 34.92 ▼6.09 | 32.41 ▼2.36 |
Add New Post /wp-admin/post-new.php | 1,529 ▲15 | 17.80 ▲0.27 | 663.67 ▲15.54 | 59.10 ▼4.84 |
Media Library /wp-admin/upload.php | 1,473 ▲82 | 4.31 ▲0.12 | 103.53 ▲7.53 | 42.63 ▲1.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_pv_am_activities
- This plugin does not fully uninstall, leaving 11 options in the database
- Plainview_Activity_Monitor_refresh_timeout
- Plainview_Activity_Monitor_activities_in_database
- Plainview_Activity_Monitor_wp_login_failed_password
- can_compress_scripts
- Plainview_Activity_Monitor_per_page
- widget_recent-posts
- Plainview_Activity_Monitor_debug_ips
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 204× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'plainview\\sdk_pvam\\form2\\inputs\\input' not found in wp-content/plugins/plainview-activity-monitor/src/sdk/form2/inputs/legend.php:12
- > PHP Fatal error
Uncaught Error: Class 'plainview\\wordpress\\activity_monitor\\hooks\\hook' not found in wp-content/plugins/plainview-activity-monitor/src/hooks/retrieve_password.php:9
- > PHP Fatal error
Uncaught Error: Class 'plainview\\sdk_pvam\\table\\section' not found in wp-content/plugins/plainview-activity-monitor/src/sdk/table/head.php:10
- > PHP Fatal error
Uncaught Error: Class 'plainview\\sdk_pvam\\tests\\TestCase' not found in wp-content/plugins/plainview-activity-monitor/src/sdk/form2/tests/TestCase.php:17
- > PHP Fatal error
Uncaught Error: Class 'plainview\\sdk_pvam\\form2\\inputs\\text' not found in wp-content/plugins/plainview-activity-monitor/src/sdk/form2/inputs/search.php:11
- > PHP Fatal error
Uncaught Error: Class 'plainview\\wordpress\\activity_monitor\\hooks\\hook' not found in wp-content/plugins/plainview-activity-monitor/src/hooks/upgrader_post_install.php:9
- > PHP Fatal error
Uncaught Error: Class 'plainview\\sdk_pvam\\collections\\collection' not found in wp-content/plugins/plainview-activity-monitor/src/sdk/tree/orphans.php:11
- > PHP Fatal error
Uncaught Error: Class 'plainview\\sdk_pvam\\form2\\inputs\\text' not found in wp-content/plugins/plainview-activity-monitor/src/sdk/form2/inputs/email.php:11
- > PHP Fatal error
Trait 'plainview\\sdk_pvam\\html\\element' not found in wp-content/plugins/plainview-activity-monitor/src/sdk/form2/form.php on line 138
- > PHP Fatal error
Uncaught Error: Class 'plainview\\sdk_pvam\\table\\cell' not found in wp-content/plugins/plainview-activity-monitor/src/sdk/table/td.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: logging, activity, activities
plainview-activity-monitor/Plainview_Activity_Monitor.php 85% from 13 tests
The principal PHP file in "Plainview Activity Monitor" v. 20180826... is loaded by WordPress automatically on each request
You should first fix the following items:
- Version: Use only periods and digits for the version number (ex. "1.0.3" instead of "20180826...")
- Main file name: The principal plugin file should be the same as the plugin slug ("plainview-activity-monitor.php" instead of "Plainview_Activity_Monitor.php")
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
There were no executable files found in this plugin15,781 lines of code in 316 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 278 | 3,281 | 7,749 | 12,627 |
JavaScript | 12 | 326 | 542 | 1,702 |
CSS | 2 | 96 | 13 | 663 |
HTML | 4 | 3 | 0 | 254 |
Bourne Shell | 8 | 30 | 15 | 114 |
Markdown | 3 | 43 | 0 | 104 |
PO File | 1 | 40 | 43 | 98 |
JSON | 4 | 0 | 0 | 91 |
SVG | 1 | 1 | 1 | 67 |
XML | 1 | 0 | 0 | 42 |
Sass | 1 | 2 | 0 | 16 |
Bourne Again Shell | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 4.35 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 72.00 |
Average method complexity | 1.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 46 | |
Interfaces | 0 | |
Traits | 61 | |
Classes | 208 | |
▷ Abstract classes | 5 | 2.40% |
▷ Concrete classes | 203 | 97.60% |
▷ Final classes | 0 | 0.00% |
Methods | 1,306 | |
▷ Static methods | 91 | 6.97% |
▷ Public methods | 1,301 | 99.62% |
▷ Protected methods | 3 | 0.23% |
▷ Private methods | 2 | 0.15% |
Functions | 21 | |
▷ Named functions | 10 | 47.62% |
▷ Anonymous functions | 11 | 52.38% |
Constants | 1 | |
▷ Global constants | 1 | 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
No PNG images were found in this plugin