Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.63MB] [CPU: ▼16.91ms] Passed 4 tests
An overview of server-side resources used by Press Page
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 38.94 ▼1.00 |
Dashboard /wp-admin | 3.36 ▲0.06 | 43.77 ▼6.51 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 45.95 ▲1.38 |
Add New Post /wp-admin/post-new.php | 3.20 ▼2.69 | 35.48 ▼58.35 |
Media Library /wp-admin/upload.php | 3.29 ▲0.05 | 34.81 ▼1.78 |
Press /wp-admin/edit.php?post_type=ap_press | 3.33 | 42.15 |
Add New /wp-admin/post-new.php?post_type=ap_press | 3.12 | 26.78 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Press Page
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲98 | 13.44 ▼1.20 | 4.33 ▲2.51 | 42.31 ▼4.06 |
Dashboard /wp-admin | 2,239 ▲54 | 5.03 ▼0.82 | 102.93 ▼14.45 | 38.78 ▼8.67 |
Posts /wp-admin/edit.php | 2,119 ▲27 | 1.99 ▼0.03 | 40.13 ▲2.63 | 35.84 ▼0.33 |
Add New Post /wp-admin/post-new.php | 1,540 ▲21 | 17.70 ▼5.40 | 604.29 ▼92.05 | 51.29 ▼4.04 |
Media Library /wp-admin/upload.php | 1,418 ▲27 | 4.20 ▲0.02 | 101.46 ▼1.31 | 42.47 ▼4.95 |
Press /wp-admin/edit.php?post_type=ap_press | 1,083 | 1.93 | 33.32 | 28.52 |
Add New /wp-admin/post-new.php?post_type=ap_press | 1,670 | 3.59 | 70.56 | 32.07 |
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
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/post-new.php?post_type=ap_press
- > Notice in wp-content/plugins/press-page/press-page.php+89
Undefined index: url
- > GET request to /wp-admin/post-new.php?post_type=ap_press
- > Notice in wp-content/plugins/press-page/press-page.php+111
Undefined index: ap_noncename
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
Almost there! Just fix the following items
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
include_once(WP_PLUGIN_DIR/press-page/inc/post_type_press.php): failed to open stream: No such file or directory in wp-content/plugins/press-page/press-page.php on line 33
- > 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/press-page/press-page.php on line 29
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/press-page/inc/post_type_press.php:48
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/press-page/press-page.php:49
- > PHP Warning
include_once(): Failed opening 'WP_PLUGIN_DIR/press-page/inc/post_type_press.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/press-page/press-page.php on line 33
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/press-page/press-page.php on line 30
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/press-page/templates/page-press.php:8
- > PHP Warning
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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: smoothdivscroll, shortcode, press, slider
press-page/press-page.php Passed 13 tests
The main file in "Press Page" v. 0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
98 characters long description:
A WordPress plugin to display a custom post type for press features in a horizontal sliding scroll
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin616 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 35 | 30 | 336 |
PHP | 3 | 32 | 128 | 218 |
CSS | 1 | 3 | 10 | 62 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
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 | 12 | |
▷ Named functions | 12 | 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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/blogs-stack.png | 1.78KB | 0.89KB | ▼ 50.03% |
img/press-icon.png | 2.41KB | 1.55KB | ▼ 35.67% |