Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼0.60MB] [CPU: ▼14.64ms] Passed 4 tests
Server-side resources used by WP Journal
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 45.80 ▲5.70 |
Dashboard /wp-admin | 3.34 ▲0.03 | 43.42 ▼11.30 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 64.36 ▲11.98 |
Add New Post /wp-admin/post-new.php | 3.26 ▼2.63 | 44.90 ▼53.79 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 40.61 ▲0.84 |
Add New /wp-admin/post-new.php?post_type=wpjournal-article | 3.24 | 39.48 |
WPJournal /wp-admin/options-general.php?page=WPJournal_template | 3.30 | 40.20 |
Add New /wp-admin/post-new.php?post_type=wpjournal | 3.24 | 40.09 |
Journals /wp-admin/edit.php?post_type=wpjournal | 3.36 | 43.84 |
All Posts /wp-admin/edit.php?post_type=wpjournal-article | 3.36 | 41.45 |
Server storage [IO: ▲1.13MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for WP Journal
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,072 ▲311 | 15.43 ▲1.27 | 8.38 ▲6.44 | 46.33 ▲5.81 |
Dashboard /wp-admin | 2,366 ▲185 | 6.59 ▲0.83 | 126.59 ▲13.54 | 40.99 ▲0.23 |
Posts /wp-admin/edit.php | 2,305 ▲205 | 3.43 ▲1.41 | 73.29 ▲36.80 | 34.88 ▼3.26 |
Add New Post /wp-admin/post-new.php | 1,569 ▲24 | 23.39 ▲0.08 | 630.09 ▼77.78 | 47.69 ▼5.53 |
Media Library /wp-admin/upload.php | 1,436 ▲33 | 4.62 ▲0.39 | 99.79 ▼20.36 | 42.53 ▼7.44 |
Add New /wp-admin/post-new.php?post_type=wpjournal-article | 2,224 | 8.05 | 189.45 | 59.24 |
WPJournal /wp-admin/options-general.php?page=WPJournal_template | 1,570 | 3.62 | 47.49 | 94.75 |
Add New /wp-admin/post-new.php?post_type=wpjournal | 2,198 | 4.32 | 76.97 | 35.80 |
Journals /wp-admin/edit.php?post_type=wpjournal | 1,299 | 3.70 | 60.16 | 30.81 |
All Posts /wp-admin/edit.php?post_type=wpjournal-article | 1,263 | 3.65 | 51.08 | 28.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=wpjournal
- > Notice in wp-content/plugins/wpjournal/WPJournal_template.php+208
Trying to get property 'ID' of non-object
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=wpjournal
- > Notice in wp-content/plugins/wpjournal/WPJournal_template.php+208
Undefined index: authorname
- > GET request to /wp-admin/post-new.php?post_type=wpjournal-article
- > Notice in wp-content/plugins/wpjournal/WPJournal_template.php+201
Trying to access array offset on value of type null
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=wpjournal-article
- > Notice in wp-content/plugins/wpjournal/WPJournal_template.php+215
Trying to get property 'post_type' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=WPJournal_template
- > User deprecated in wp-includes/functions.php+5737
Function WP_Query was called with an argument that is deprecated since version 3.1.0! caller_get_posts is deprecated. Use ignore_sticky_posts instead.
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wpjournal/settings.php:64
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wpjournal/templates/plugin-admin-settings-page.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_head() in wp-content/plugins/wpjournal/WPJournal-menabo.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_head() in wp-content/plugins/wpjournal/WPJournal-internalpage.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wpjournal/WPJournal_template.php:55
- > 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 96% from 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
5 plugin tags: journal, magazine, visual editor, newspaper, publication
wpjournal/WPJournal_template.php 92% from 13 tests
Analyzing the main PHP file in "WP Journal" version 1.1
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("wpjournal.php" instead of "WPJournal_template.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected11,101 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 7 | 262 | 33 | 8,156 |
PHP | 6 | 562 | 30 | 1,465 |
JavaScript | 7 | 255 | 72 | 1,052 |
SVG | 1 | 0 | 0 | 288 |
PO File | 1 | 68 | 153 | 140 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 1.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 2 | 22.22% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 27 | |
▷ Named functions | 27 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
7 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/WPJournal_placeholder.png | 4.87KB | 2.51KB | ▼ 48.48% |
img/WPJournal_WPJournal_logo.png | 2.70KB | 1.76KB | ▼ 34.89% |
img/letter.png | 25.24KB | 15.15KB | ▼ 39.98% |
img/WPJournal_layout_soon.png | 5.46KB | 2.56KB | ▼ 53.05% |
img/WPJournal_layout_1_col.png | 5.21KB | 3.03KB | ▼ 41.91% |