Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼1.81MB] [CPU: ▼197.34ms] Passed 4 tests
Server-side resources used by Article analytics
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.82 ▼1.02 | 6.17 ▼34.32 |
Dashboard /wp-admin | 1.83 ▼1.22 | 11.21 ▼40.72 |
Posts /wp-admin/edit.php | 1.84 ▼1.27 | 5.73 ▼47.34 |
Add New Post /wp-admin/post-new.php | 1.83 ▼3.60 | 5.34 ▼664.27 |
Media Library /wp-admin/upload.php | 1.83 ▼1.17 | 5.61 ▼37.04 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 3 new files
Database: 2 new tables, no new options
New tables |
---|
wp_article_analytics_config |
wp_article_analytics_info |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Article analytics
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,699 ▲127 | 16.00 ▲0.06 | 12.44 ▲1.40 | 46.78 ▼5.36 |
Dashboard /wp-admin | 2,987 ▲53 | 5.93 ▼0.03 | 156.83 ▼9.91 | 122.16 ▲7.58 |
Posts /wp-admin/edit.php | 2,759 ▲20 | 2.71 ▼0.02 | 74.79 ▲5.11 | 87.73 ▼9.08 |
Add New Post /wp-admin/post-new.php | 1,594 ▼89 | 20.73 ▲2.80 | 437.13 ▼15.28 | 120.53 ▲6.97 |
Media Library /wp-admin/upload.php | 1,827 ▲20 | 5.04 ▲0.02 | 170.20 ▼0.13 | 128.05 ▼1.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Uninstall procedure validation failed for this plugin
- > User notice in wp-includes/functions.php+5663
wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- The plugin did not uninstall successfully, leaving 2 tables in the database
- wp_article_analytics_info
- wp_article_analytics_config
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
Almost there! Just fix the following items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/article-analytics/article-analytics.php:14
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/article-analytics/article-analytics.php on line 11
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/article-analytics/article-analytics.php on line 12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
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
3 plugin tags: post, analytics, audience
article-analytics/article-analytics.php Passed 13 tests
The principal PHP file in "Article analytics" v. 1.0 is loaded by WordPress automatically on each request
81 characters long description:
Article analytics provides digital analytics of the visitors who read your posts.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin233 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 22 | 8 | 212 |
CSS | 1 | 2 | 0 | 21 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
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 | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
There are no PNG files in this plugin