Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.95MB] [CPU: ▼38.22ms] Passed 4 tests
Analyzing server-side resources used by Factory Women
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.12 ▼2.88 |
Dashboard /wp-admin | 3.00 ▼0.35 | 20.94 ▼43.54 |
Posts /wp-admin/edit.php | 3.00 ▼0.36 | 23.48 ▼29.18 |
Add New Post /wp-admin/post-new.php | 3.00 ▼2.89 | 21.50 ▼71.84 |
Media Library /wp-admin/upload.php | 3.00 ▼0.23 | 23.11 ▼8.33 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Factory Women
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.53 ▼0.03 | 1.91 ▲0.21 | 40.50 ▼5.34 |
Dashboard /wp-admin | 2,199 ▲19 | 5.56 ▼0.11 | 88.33 ▼3.13 | 39.64 ▼4.19 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▼0.01 | 34.88 ▼0.67 | 32.63 ▼3.02 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.06 ▲0.20 | 646.93 ▲44.28 | 61.07 ▼3.49 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.20 ▼0.13 | 94.37 ▼6.15 | 44.42 ▲1.89 |
Factory /wp-admin/factorywomen.php | 26 | 0.42 | 0.11 | 14.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
require_once(/../../../../wordpress-develop/tests/phpunit/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/factory-women/tests/bootstrap.php on line 7
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/factory-women/tests/test-sample.php:3
- > PHP Fatal error
require_once(): Failed opening required '/../../../../wordpress-develop/tests/phpunit/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/factory-women/tests/bootstrap.php on line 7
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
- > GET request to /wp-admin/factorywomen.php
- > Network (severe)
wp-admin/factorywomen.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 79% from 29 tests
readme.txt 88% from 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
Attributes that require attention:
- Plugin Name: Please specify the plugin name on the first line (
=== factory-women ===
) - Tags: You are using too many tags: 11 tag instead of maximum 10
factory-women/factorywomen.php 69% from 13 tests
The entry point to "Factory Women" version 0.1-alpha... is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Version: Use only periods and digits for the version number (ex. "1.0.3" instead of "0.1-alpha...")
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Domain Path: The domain path folder was not found ("/languages")
- Main file name: The principal plugin file should be the same as the plugin slug ("factory-women.php" instead of "factorywomen.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin210 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 27 | 13 | 85 |
Bourne Shell | 1 | 15 | 4 | 59 |
HTML | 1 | 0 | 0 | 37 |
XML | 1 | 0 | 0 | 14 |
YAML | 1 | 4 | 0 | 12 |
Markdown | 1 | 1 | 0 | 3 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 3.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin