Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.12MB] [CPU: ▼12.90ms] Passed 4 tests
An overview of server-side resources used by Primal for WordPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 50.03 ▲9.11 |
Dashboard /wp-admin | 3.25 ▼0.06 | 33.18 ▼15.01 |
Posts /wp-admin/edit.php | 3.32 ▼0.04 | 39.27 ▼8.49 |
Add New Post /wp-admin/post-new.php | 5.49 ▼0.40 | 69.87 ▼27.17 |
Media Library /wp-admin/upload.php | 3.26 ▲0.02 | 32.02 ▼0.93 |
Primal /wp-admin/options-general.php?page=primal_settings | 3.23 | 29.80 |
Server storage [IO: ▲0.03MB] [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: 10 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
primal_plugin_version |
widget_recent-comments |
widget_primal_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Primal for WordPress
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,916 ▲181 | 13.65 ▼0.71 | 6.93 ▲5.13 | 36.56 ▼9.76 |
Dashboard /wp-admin | 2,204 ▲16 | 5.83 ▼0.07 | 103.71 ▼0.98 | 38.06 ▼4.86 |
Posts /wp-admin/edit.php | 2,090 ▲4 | 1.99 ▼0.05 | 36.40 ▼0.67 | 35.39 ▲0.33 |
Add New Post /wp-admin/post-new.php | 1,545 ▲12 | 18.08 ▼5.07 | 657.84 ▼31.97 | 56.68 ▲3.62 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.18 ▲0.02 | 99.27 ▲2.75 | 41.56 ▼7.11 |
Primal /wp-admin/options-general.php?page=primal_settings | 820 | 2.05 | 24.96 | 31.66 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 8 options in the database
- primal_plugin_version
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_primal_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=primal_settings
- > Warning in wp-includes/functions.php+6691
file_get_contents(http://wp.com/wp-content/plugins/primal-for-wp/primal.php): failed to open stream: HTTP request failed! HTTP/1.0 500 Internal Server Error
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
The following issues need your attention
- 13× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/primal-for-wp/config.php on line 8
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/primal-for-wp/config.php on line 8
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/primal-for-wp/widget.php:4
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/primal-for-wp/config.php on line 8
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/primal-for-wp/config.php on line 8
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/primal-for-wp/config.php on line 8
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/primal-for-wp/config.php on line 8
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/primal-for-wp/config.php on line 8
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/primal-for-wp/config.php on line 8
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/primal-for-wp/config.php on line 8
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: related posts, content recommendations, primal, content discovery, related content...
primal-for-wp/primal.php 92% from 13 tests
The primary PHP file in "Primal for WordPress" version 2.0.5 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("primal-for-wp.php" instead of "primal.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin322 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 53 | 96 | 255 |
JavaScript | 1 | 17 | 46 | 59 |
CSS | 1 | 1 | 0 | 8 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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