Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼136.53ms] Passed 4 tests
This is a short check of server-side resources used by Reusable Contents
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.88 ▲0.04 | 35.98 ▲2.77 |
Dashboard /wp-admin | 3.11 ▲0.05 | 36.94 ▲3.76 |
Posts /wp-admin/edit.php | 3.16 ▲0.05 | 45.98 ▲3.08 |
Add New Post /wp-admin/post-new.php | 5.47 ▲0.03 | 88.14 ▼554.07 |
Media Library /wp-admin/upload.php | 3.05 ▲0.04 | 31.95 ▲2.10 |
Add New /wp-admin/post-new.php?post_type=reusable_contents | 3.15 | 46.41 |
All Reusable Contents /wp-admin/edit.php?post_type=reusable_contents | 3.09 | 36.08 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Reusable Contents
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,709 ▲113 | 15.89 ▲0.25 | 10.69 ▼0.86 | 51.52 ▲6.31 |
Dashboard /wp-admin | 2,993 ▲59 | 5.91 ▼0.28 | 137.00 ▼10.57 | 140.01 ▲28.98 |
Posts /wp-admin/edit.php | 2,787 ▲48 | 2.72 ▼0.12 | 63.54 ▲5.00 | 91.03 ▲3.99 |
Add New Post /wp-admin/post-new.php | 1,696 ▲81 | 18.95 ▼2.52 | 373.58 ▲99.37 | 109.31 ▲5.49 |
Media Library /wp-admin/upload.php | 1,781 ▼26 | 5.02 ▼0.01 | 129.06 ▼22.55 | 145.20 ▲32.98 |
Add New /wp-admin/post-new.php?post_type=reusable_contents | 2,857 | 8.91 | 212.77 | 165.82 |
All Reusable Contents /wp-admin/edit.php?post_type=reusable_contents | 1,453 | 2.61 | 59.19 | 73.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not 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
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 plugin_basename() in wp-content/plugins/reusable-contents/reusable-contents.php:18
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/reusable-contents/reusable-contents.php on line 18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Screenshots: Add images for these screenshots: #1 (Create "Reusable Content" using Wordpress admin editor.), #2 (For every "Reusable Content" there is a shortcode.), #3 (Generated shortcodes can be used in posts, pages, widgets.), #4 ("Reusable Content" is displayed on the post.), #5 ("Reusable Content" can be used in a text widget.)
- Tested up to: Invalid plugin version format
reusable-contents/reusable-contents.php 92% from 13 tests
The primary PHP file in "Reusable Contents" version 0.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 182 characters long)
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
Success! There were no dangerous files found in this plugin184 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 16 | 14 | 92 |
PO File | 2 | 28 | 52 | 92 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 compressed PNG files occupy 0.17MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/reusable_contents.png | 1.59KB | 0.98KB | ▼ 38.34% |
screenshot-2.png | 17.01KB | 16.17KB | ▼ 4.95% |
screenshot-1.png | 45.87KB | 44.65KB | ▼ 2.65% |
screenshot-4.png | 57.81KB | 56.95KB | ▼ 1.48% |
screenshot-5.png | 29.97KB | 29.29KB | ▼ 2.27% |