Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼2.96ms] Passed 4 tests
A check of server-side resources used by Page Parts
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 36.25 ▼5.82 |
Dashboard /wp-admin | 3.35 ▲0.05 | 47.72 ▼1.83 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 47.88 ▼1.50 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 100.11 ▲5.72 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 34.90 ▼2.68 |
Page Parts Documentation /wp-admin/admin.php?page=page-parts-documentation | 3.29 | 32.58 |
Page Parts /wp-admin/edit.php?post_type=page-part | 3.32 | 35.33 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Page Parts
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲85 | 13.23 ▼1.36 | 1.70 ▼0.17 | 40.83 ▼4.87 |
Dashboard /wp-admin | 2,223 ▲35 | 4.90 ▼0.98 | 101.10 ▼1.54 | 40.23 ▼12.22 |
Posts /wp-admin/edit.php | 2,123 ▲34 | 2.28 ▲0.29 | 41.78 ▲2.85 | 34.46 ▼3.94 |
Add New Post /wp-admin/post-new.php | 1,542 ▲23 | 23.34 ▼0.00 | 588.19 ▲1.59 | 35.71 ▼23.66 |
Media Library /wp-admin/upload.php | 1,412 ▲27 | 4.28 ▼0.01 | 95.79 ▼10.66 | 42.28 ▼5.81 |
Page Parts Documentation /wp-admin/admin.php?page=page-parts-documentation | 1,027 | 1.86 | 27.10 | 46.09 |
Page Parts /wp-admin/edit.php?post_type=page-part | 1,126 | 2.23 | 33.92 | 27.49 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
Please take a closer look at the following
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/page-parts/admin/page-parts-list-table.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/page-parts/page-parts.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function the_ID() in wp-content/plugins/page-parts/templates/page-part.php:26
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/page-parts/admin/page-parts-list-table.php on line 3
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/page-parts/admin/page-parts-list-table.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: cms, pages
page-parts/page-parts.php Passed 13 tests
The main file in "Page Parts" v. 1.4.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
29 characters long description:
Manage subsections of a page.
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
Success! There were no dangerous files found in this plugin1,773 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 558 | 790 | 1,576 |
Markdown | 2 | 56 | 0 | 128 |
JavaScript | 1 | 36 | 0 | 45 |
CSS | 1 | 5 | 0 | 24 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 29.40 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 88.00 |
Average method complexity | 3.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 60 | |
▷ Static methods | 3 | 5.00% |
▷ Public methods | 55 | 91.67% |
▷ Protected methods | 1 | 1.67% |
▷ Private methods | 4 | 6.67% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
2 PNG files occupy 0.09MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/src/Templates.fw.png | 93.80KB | 0.17KB | ▼ 99.82% |
images/templates/default.png | 0.25KB | 0.17KB | ▼ 34.75% |