Benchmarks
Plugin footprint 40% 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
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/pagemeta/index.php+11
Methods with the same name as their class will not be constructors in a future version of PHP; PageMeta has a deprecated constructor
Server metrics [RAM: ▼1.90MB] [CPU: ▼56.34ms] Passed 4 tests
An overview of server-side resources used by Page Meta
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.10 ▼1.36 | 6.09 ▼38.48 |
Dashboard /wp-admin | 2.12 ▼1.23 | 5.75 ▼56.55 |
Posts /wp-admin/edit.php | 2.12 ▼1.24 | 6.34 ▼45.80 |
Add New Post /wp-admin/post-new.php | 2.12 ▼3.77 | 8.12 ▼84.51 |
Media Library /wp-admin/upload.php | 2.12 ▼1.11 | 5.90 ▼28.88 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
pagemeta |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Page Meta
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.73 ▲0.36 | 1.80 ▲0.07 | 43.43 ▲1.87 |
Dashboard /wp-admin | 2,189 ▲12 | 5.54 ▼0.07 | 88.14 ▼2.48 | 42.29 ▼1.50 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.99 ▼0.02 | 37.48 ▲0.50 | 34.72 ▼0.12 |
Add New Post /wp-admin/post-new.php | 6,288 ▲4,742 | 26.15 ▲3.09 | 909.46 ▲311.06 | 58.44 ▲10.73 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.28 ▲0.05 | 96.02 ▼17.78 | 42.95 ▼5.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/pagemeta/index.php+11
Methods with the same name as their class will not be constructors in a future version of PHP; PageMeta has a deprecated constructor
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
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
Even though everything seems fine, this is not an exhaustive test
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
The following issues need your attention
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/pagemeta/panel.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/pagemeta/index.php:43
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Screenshots: Add images for these screenshots: #1 (The Page Meta panel displayed below the content editor.), #2 (Settings are managed via the Settings > Reading page.)
pagemeta/index.php 92% from 13 tests
The primary PHP file in "Page Meta" version 1.5.1 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 ("pagemeta.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected245 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 23 | 123 | 245 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 34.00 |
▷ Minimum class complexity | 34.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 3.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 14.22KB | 7.89KB | ▼ 44.56% |
screenshot-2.png | 24.33KB | 11.14KB | ▼ 54.20% |