Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/list-my-posts/wp-listmyposts.php+38
Constant WP_CONTENT_URL already defined
Server metrics [RAM: ▼1.58MB] [CPU: ▼188.56ms] Passed 4 tests
Analyzing server-side resources used by List My Posts
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.05 ▼0.67 | 6.14 ▼17.79 |
Dashboard /wp-admin | 2.06 ▼0.99 | 6.94 ▼39.47 |
Posts /wp-admin/edit.php | 2.07 ▼1.04 | 9.65 ▼38.36 |
Add New Post /wp-admin/post-new.php | 2.06 ▼3.37 | 9.11 ▼645.53 |
Media Library /wp-admin/upload.php | 2.06 ▼0.94 | 6.83 ▼30.88 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 43 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for List My Posts
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,728 ▲156 | 16.15 ▲0.53 | 12.09 ▲0.41 | 55.45 ▲2.82 |
Dashboard /wp-admin | 3,014 ▲83 | 6.75 ▲0.61 | 159.56 ▼46.03 | 112.92 ▼13.28 |
Posts /wp-admin/edit.php | 2,790 ▲54 | 2.76 ▲0.05 | 79.08 ▲4.82 | 98.88 ▲0.79 |
Add New Post /wp-admin/post-new.php | 1,717 ▲34 | 18.81 ▲0.50 | 420.15 ▲2.08 | 142.54 ▲23.66 |
Media Library /wp-admin/upload.php | 1,795 ▲62 | 5.14 ▲0.14 | 153.53 ▼19.45 | 130.16 ▲7.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/list-my-posts/wp-listmyposts.php+38
Constant WP_CONTENT_URL already defined
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/list-my-posts/wp-listmyposts.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Screenshot #1 (Options page.) image required
list-my-posts/wp-listmyposts.php 92% from 13 tests
Analyzing the main PHP file in "List My Posts" version 1.0
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("list-my-posts.php" instead of "wp-listmyposts.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin684 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 53 | 47 | 574 |
PO File | 1 | 47 | 56 | 110 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.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
30 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/wp-localize-banner-ad.png | 8.26KB | 7.79KB | ▼ 5.77% |
styles/icons/tick-circle-frame.png | 0.88KB | 0.81KB | ▼ 8.19% |
styles/icons/bullet_user.png | 0.45KB | 0.47KB | 0.00% |
styles/icons/shape_square_link.png | 0.66KB | 0.76KB | 0.00% |
styles/icons/star-hot.png | 0.35KB | 0.24KB | ▼ 32.50% |