Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.69MB] [CPU: ▲1.11ms] 75% from 4 tests
This is a short check of server-side resources used by HT Politic – For Political WordPress Themes / Website
Please have a look at the following items
- CPU: Try to keep total CPU usage under 500.00ms (currently 1,487.46ms on /wp-admin/admin.php?page=htpolitic-recommendations)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.13 ▲0.67 | 52.18 ▲13.98 |
Dashboard /wp-admin | 4.08 ▲0.73 | 56.18 ▼5.57 |
Posts /wp-admin/edit.php | 4.13 ▲0.77 | 49.93 ▼0.10 |
Add New Post /wp-admin/post-new.php | 6.57 ▲0.69 | 92.96 ▲3.22 |
Media Library /wp-admin/upload.php | 3.91 ▲0.69 | 39.35 ▲6.88 |
Campaigns /wp-admin/edit.php?post_type=wpcampaign | 4.05 | 44.25 |
Portfolio /wp-admin/edit.php?post_type=wppolitic_portfolio | 4.05 | 40.42 |
Recommendations /wp-admin/admin.php?page=htpolitic-recommendations | 8.38 | 1,487.46 |
Gallery /wp-admin/edit.php?post_type=wppolitic_gallery | 4.05 | 45.12 |
Mission /wp-admin/edit.php?post_type=wppolitic_mission | 4.05 | 40.50 |
Settings /wp-admin/admin.php?page=wppolitic_options | 3.91 | 38.10 |
Team /wp-admin/edit.php?post_type=wppolitic_team | 4.05 | 41.22 |
Server storage [IO: ▲4.66MB] [DB: ▲0.67MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 107 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
wppolitic_settings |
wppolitic_post_types_settings |
wppolitic_pro_themes |
widget_recent-comments |
wppolitic_portfilio_settings |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for HT Politic – For Political WordPress Themes / Website
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,223 ▲477 | 15.87 ▲1.52 | 20.85 ▲19.25 | 49.30 ▲9.37 |
Dashboard /wp-admin | 2,431 ▲250 | 6.33 ▲0.59 | 105.91 ▲6.26 | 37.86 ▼3.77 |
Posts /wp-admin/edit.php | 2,367 ▲264 | 3.53 ▲1.50 | 57.14 ▲16.03 | 39.52 ▼0.14 |
Add New Post /wp-admin/post-new.php | 1,457 ▼71 | 17.31 ▼5.86 | 487.32 ▼160.91 | 69.68 ▲21.37 |
Media Library /wp-admin/upload.php | 1,507 ▲104 | 4.32 ▲0.16 | 79.56 ▼16.83 | 44.50 ▲0.85 |
Campaigns /wp-admin/edit.php?post_type=wpcampaign | 1,355 | 3.47 | 50.56 | 33.99 |
Portfolio /wp-admin/edit.php?post_type=wppolitic_portfolio | 1,343 | 3.56 | 48.79 | 33.97 |
Recommendations /wp-admin/admin.php?page=htpolitic-recommendations | 3,155 | 3.45 | 46.69 | 95.75 |
Gallery /wp-admin/edit.php?post_type=wppolitic_gallery | 1,344 | 3.45 | 49.65 | 34.28 |
Mission /wp-admin/edit.php?post_type=wppolitic_mission | 1,340 | 3.48 | 51.25 | 34.71 |
Settings /wp-admin/admin.php?page=wppolitic_options | 1,357 | 3.47 | 92.65 | 32.79 |
Team /wp-admin/edit.php?post_type=wppolitic_team | 1,332 | 3.47 | 51.94 | 32.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.67MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 10 options in the database
- wppolitic_pro_themes
- db_upgraded
- wppolitic_post_types_settings
- widget_recent-comments
- wppolitic_settings
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- wppolitic_portfilio_settings
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/edit.php?post_type=wppolitic_team
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 14× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
require_once(WPPOLITIC_ADDONS_PL_PATHadmin/admin-init.php): failed to open stream: No such file or directory in wp-content/plugins/wp-politic/admin/init.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-politic/includes/single-wppolitic_team.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-politic/includes/archive-wpcampaign.php:10
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Icons_Manager' not found in wp-content/plugins/wp-politic/includes/class.wppolitic-icon-manager.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-politic/includes/single-wppolitic_portfolio.php:10
- > PHP Fatal error
require_once(): Failed opening required 'WPPOLITIC_ADDONS_PL_PATHadmin/admin-init.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-politic/admin/init.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-politic/admin/admin-init.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-politic/includes/single-wppolitic_gallery.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-politic/includes/single-wppolitic_mission.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-politic/admin/wppolitic_custom-post-type.php:368
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: event, campaign, advisor, candidate, political
wp-politic/wppolitic.php 85% from 13 tests
The entry point to "HT Politic – For Political WordPress Themes / Website" version 2.4.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-politic.php" instead of "wppolitic.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin26,460 lines of code in 67 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 35 | 1,648 | 569 | 16,344 |
CSS | 9 | 1,286 | 119 | 7,224 |
SVG | 1 | 0 | 0 | 2,671 |
JavaScript | 20 | 56 | 149 | 186 |
YAML | 2 | 2 | 0 | 35 |
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.25 |
Average class complexity | 27.05 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 73.00 |
Average method complexity | 4.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 73.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 22 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 156 | |
▷ Static methods | 4 | 2.56% |
▷ Public methods | 120 | 76.92% |
▷ Protected methods | 34 | 21.79% |
▷ Private methods | 2 | 1.28% |
Functions | 39 | |
▷ Named functions | 37 | 94.87% |
▷ Anonymous functions | 2 | 5.13% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 0% from 2 tests
Image compression 0% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
30 PNG files occupy 1.76MB with 0.87MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) admin/assets/images/extensions/ht-google-place-review.png | 2.64KB | 0.00KB | ▼ 100.00% |
.wordpress-org/screenshot-7.png | 132.34KB | 141.91KB | 0.00% |
(invalid) admin/assets/images/extensions/was-this-helpful.png | 1.21KB | 0.00KB | ▼ 100.00% |
.wordpress-org/icon-128x128.png | 1.29KB | 0.70KB | ▼ 45.88% |
.wordpress-org/screenshot-2.png | 91.52KB | 99.33KB | 0.00% |