Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼2.84ms] Passed 4 tests
Server-side resources used by WP Factcheck
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 38.69 ▼8.41 |
Dashboard /wp-admin | 3.45 ▲0.15 | 46.34 ▼2.05 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 53.05 ▲5.08 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.27 | 97.99 ▲1.07 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 35.61 ▼1.97 |
Settings /wp-admin/edit.php?post_type=wpfc-fact-checking&page=wpfc-settings | 3.34 | 31.32 |
Add New /wp-admin/post-new.php?post_type=wpfc-fact-checking | 6.16 | 82.69 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=wpfc-fact-checking | 3.37 | 36.29 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=wpfc-fact-checking | 3.37 | 39.74 |
All Fact-checks /wp-admin/edit.php?post_type=wpfc-fact-checking | 3.43 | 39.36 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
category_children |
wpfc-options |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
WP Factcheck: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,898 ▲152 | 13.80 ▼0.59 | 1.74 ▼0.34 | 40.12 ▼5.01 |
Dashboard /wp-admin | 2,292 ▲104 | 5.15 ▲0.32 | 109.89 ▲3.87 | 41.34 ▼7.24 |
Posts /wp-admin/edit.php | 2,180 ▲91 | 2.32 ▲0.29 | 42.03 ▲1.79 | 34.18 ▼2.99 |
Add New Post /wp-admin/post-new.php | 1,580 ▲66 | 18.26 ▲0.65 | 598.87 ▼46.90 | 35.79 ▼16.82 |
Media Library /wp-admin/upload.php | 1,478 ▲90 | 4.47 ▲0.31 | 96.52 ▼11.81 | 42.47 ▼7.37 |
Settings /wp-admin/edit.php?post_type=wpfc-fact-checking&page=wpfc-settings | 1,650 | 2.87 | 59.65 | 33.37 |
Add New /wp-admin/post-new.php?post_type=wpfc-fact-checking | 6,660 | 21.60 | 881.41 | 44.89 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=wpfc-fact-checking | 1,402 | 2.09 | 32.85 | 29.42 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=wpfc-fact-checking | 1,535 | 2.08 | 33.00 | 32.53 |
All Fact-checks /wp-admin/edit.php?post_type=wpfc-fact-checking | 1,235 | 2.29 | 34.54 | 29.84 |
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: 7 options
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- category_children
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Please fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-factcheck/wp-factcheck.php
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)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
wp-factcheck/wp-factcheck.php 85% from 13 tests
Analyzing the main PHP file in "WP Factcheck" version 1.1.2
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 142 characters long)
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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 plugin1,158 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 90 | 26 | 615 |
CSS | 3 | 74 | 7 | 341 |
PO File | 1 | 62 | 82 | 178 |
JavaScript | 2 | 2 | 0 | 24 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
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 | 15 | |
▷ Named functions | 15 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.23MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-4.png | 51.93KB | 18.15KB | ▼ 65.06% |
assets/screenshot-1.png | 19.41KB | 11.57KB | ▼ 40.38% |
assets/screenshot-3.png | 24.01KB | 5.77KB | ▼ 75.96% |
assets/screenshot-5.png | 93.17KB | 47.84KB | ▼ 48.65% |
assets/icon-128x128.png | 6.50KB | 3.19KB | ▼ 50.90% |