Benchmarks
Plugin footprint 83% from 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.05MB] [CPU: ▼7.04ms] Passed 4 tests
A check of server-side resources used by Genesis Author Pro
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 42.57 ▼2.62 |
Dashboard /wp-admin | 3.36 ▲0.02 | 56.25 ▼10.25 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 49.41 ▼3.52 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 95.55 ▼10.36 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 35.50 ▼4.04 |
Series /wp-admin/edit-tags.php?taxonomy=book-series&post_type=books | 3.28 | 36.61 |
Add New Book /wp-admin/post-new.php?post_type=books | 3.44 | 58.06 |
All Books /wp-admin/edit.php?post_type=books | 3.33 | 41.00 |
Tags /wp-admin/edit-tags.php?taxonomy=book-tags&post_type=books | 3.28 | 34.62 |
Authors /wp-admin/edit-tags.php?taxonomy=book-authors&post_type=books | 3.28 | 35.69 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Genesis Author Pro
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲70 | 14.24 ▲0.08 | 1.63 ▼0.12 | 46.11 ▼0.38 |
Dashboard /wp-admin | 2,234 ▲54 | 5.53 ▼0.10 | 85.48 ▼8.50 | 38.40 ▼3.23 |
Posts /wp-admin/edit.php | 2,139 ▲39 | 1.98 ▲0.01 | 36.91 ▼2.34 | 32.91 ▼3.78 |
Add New Post /wp-admin/post-new.php | 1,558 ▲30 | 22.94 ▲0.03 | 684.36 ▲30.02 | 51.47 ▼6.72 |
Media Library /wp-admin/upload.php | 1,439 ▲39 | 4.23 ▲0.06 | 100.70 ▼4.29 | 47.28 ▲0.72 |
Series /wp-admin/edit-tags.php?taxonomy=book-series&post_type=books | 1,312 | 2.12 | 26.17 | 31.24 |
Add New Book /wp-admin/post-new.php?post_type=books | 2,747 | 7.97 | 182.86 | 70.68 |
All Books /wp-admin/edit.php?post_type=books | 1,167 | 1.97 | 29.78 | 31.15 |
Tags /wp-admin/edit-tags.php?taxonomy=book-tags&post_type=books | 1,288 | 2.12 | 27.00 | 30.49 |
Authors /wp-admin/edit-tags.php?taxonomy=book-authors&post_type=books | 1,312 | 2.12 | 29.24 | 30.80 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% 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)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/genesis-author-pro/plugin.php
- 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'GENESIS_AUTHOR_PRO_TEMPLATES_DIRarchive-books.php' (include_path='.:/usr/share/php') in wp-content/plugins/genesis-author-pro/templates/taxonomy-book-series.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/genesis-author-pro/templates/archive-books.php:11
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/genesis-author-pro/classes/class.Genesis_Author_Pro_Widget.php:7
- > PHP Fatal error
require_once(): Failed opening required 'GENESIS_AUTHOR_PRO_TEMPLATES_DIRarchive-books.php' (include_path='.:/usr/share/php') in wp-content/plugins/genesis-author-pro/templates/taxonomy-book-tags.php on line 11
- > PHP Warning
Use of undefined constant GENESIS_AUTHOR_PRO_TEMPLATES_DIR - assumed 'GENESIS_AUTHOR_PRO_TEMPLATES_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/genesis-author-pro/templates/taxonomy-book-authors.php on line 11
- > PHP Warning
Use of undefined constant GENESIS_AUTHOR_PRO_TEMPLATES_DIR - assumed 'GENESIS_AUTHOR_PRO_TEMPLATES_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/genesis-author-pro/templates/taxonomy-book-series.php on line 11
- > PHP Warning
require_once(GENESIS_AUTHOR_PRO_TEMPLATES_DIRarchive-books.php): failed to open stream: No such file or directory in wp-content/plugins/genesis-author-pro/templates/taxonomy-book-series.php on line 11
- > PHP Warning
Use of undefined constant GENESIS_AUTHOR_PRO_TEMPLATES_DIR - assumed 'GENESIS_AUTHOR_PRO_TEMPLATES_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/genesis-author-pro/templates/taxonomy-book-tags.php on line 11
- > PHP Warning
require_once(GENESIS_AUTHOR_PRO_TEMPLATES_DIRarchive-books.php): failed to open stream: No such file or directory in wp-content/plugins/genesis-author-pro/templates/taxonomy-book-tags.php on line 11
- > PHP Warning
require_once(GENESIS_AUTHOR_PRO_TEMPLATES_DIRarchive-books.php): failed to open stream: No such file or directory in wp-content/plugins/genesis-author-pro/templates/taxonomy-book-authors.php on line 11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: genesis, authors, books
genesis-author-pro/plugin.php 92% from 13 tests
The principal PHP file in "Genesis Author Pro" v. 1.0.3 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("genesis-author-pro.php" instead of "plugin.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
Good job! No executable or dangerous file extensions detected1,172 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 454 | 822 | 985 |
CSS | 2 | 29 | 10 | 116 |
Markdown | 1 | 23 | 0 | 71 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 8.11 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 52 | |
▷ Static methods | 16 | 30.77% |
▷ Public methods | 41 | 78.85% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 21.15% |
Functions | 23 | |
▷ Named functions | 23 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin