Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.08MB] [CPU: ▼142.19ms] Passed 4 tests
A check of server-side resources used by LibWp
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▲0.18 | 37.89 ▲14.86 |
Dashboard /wp-admin | 3.12 ▲0.07 | 46.04 ▼4.57 |
Posts /wp-admin/edit.php | 3.24 ▲0.13 | 45.34 ▼2.65 |
Add New Post /wp-admin/post-new.php | 5.48 ▲0.05 | 91.28 ▼560.75 |
Media Library /wp-admin/upload.php | 3.07 ▲0.07 | 37.81 ▼0.79 |
Types /wp-admin/edit-tags.php?taxonomy=types&post_type=book | 3.07 | 34.18 |
All Books /wp-admin/edit.php?post_type=book | 3.11 | 39.52 |
Add New /wp-admin/post-new.php?post_type=book | 3.25 | 57.43 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for LibWp
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,723 ▲117 | 15.90 ▲0.42 | 10.36 ▲1.95 | 51.74 ▲0.53 |
Dashboard /wp-admin | 3,007 ▲70 | 5.92 ▼0.05 | 150.35 ▼2.47 | 118.50 ▼7.56 |
Posts /wp-admin/edit.php | 2,779 ▲40 | 2.70 ▲0.01 | 70.82 ▼0.94 | 94.59 ▲2.28 |
Add New Post /wp-admin/post-new.php | 1,696 ▲13 | 19.23 ▲0.44 | 383.45 ▼13.00 | 119.20 ▲5.39 |
Media Library /wp-admin/upload.php | 1,847 ▲40 | 5.02 ▼0.05 | 153.64 ▼11.20 | 125.13 ▼2.29 |
Types /wp-admin/edit-tags.php?taxonomy=types&post_type=book | 1,776 | 2.50 | 68.50 | 87.68 |
All Books /wp-admin/edit.php?post_type=book | 1,496 | 2.63 | 74.14 | 79.26 |
Add New /wp-admin/post-new.php?post_type=book | 3,456 | 8.99 | 236.29 | 141.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/libwp/index.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: post-type, functionality, library, taxonomy, theme
libwp/index.php 85% from 13 tests
The main PHP file in "LibWp" ver. 2.2 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Domain Path: The domain path folder was not found ("/resources/languages")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("libwp.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin323 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 57 | 231 | 207 |
Markdown | 1 | 21 | 0 | 116 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.04 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 1 | 4.76% |
▷ Public methods | 20 | 95.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.76% |
Functions | 4 | |
▷ Named functions | 1 | 25.00% |
▷ Anonymous functions | 3 | 75.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected