Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼1.66ms] Passed 4 tests
This is a short check of server-side resources used by Pleasant Viewer
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.44 ▼5.71 |
Dashboard /wp-admin | 3.32 ▲0.01 | 44.87 ▼0.57 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.79 ▲1.66 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 94.23 ▲0.35 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.93 ▼0.69 |
Pleasant Viewer /wp-admin/options-general.php?page=pleasant_viewer | 3.18 | 29.25 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Pleasant Viewer: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,943 ▲208 | 13.93 ▼0.72 | 10.17 ▲8.43 | 36.60 ▼6.85 |
Dashboard /wp-admin | 2,207 ▲16 | 5.80 ▲0.93 | 96.41 ▼17.15 | 38.61 ▼2.96 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.04 ▼0.07 | 39.24 ▲4.79 | 35.29 ▲2.41 |
Add New Post /wp-admin/post-new.php | 1,536 ▲16 | 22.91 ▼0.17 | 584.42 ▼106.99 | 60.50 ▼1.63 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.25 ▲0.02 | 99.03 ▼19.81 | 41.11 ▼10.62 |
Pleasant Viewer /wp-admin/options-general.php?page=pleasant_viewer | 796 | 2.03 | 23.96 | 28.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
Smoke tests 25% 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/options-general.php?page=pleasant_viewer
- > Notice in wp-content/plugins/pleasant-viewer/pleasant-viewer.php+404
Trying to access array offset on value of type bool
SRP 0% 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
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/pleasant-viewer/template_entry_form.php
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/pleasant-viewer/pleasant-viewer.php:234
- > PHP Notice
Undefined variable: category_options in wp-content/plugins/pleasant-viewer/template_entry_form.php on line 7
- > PHP Notice
Undefined index: post_citations in wp-content/plugins/pleasant-viewer/template_entry_form.php on line 16
- > PHP Notice
Undefined index: post_topic in wp-content/plugins/pleasant-viewer/template_entry_form.php on line 6
- > PHP Notice
Undefined index: post_introduction in wp-content/plugins/pleasant-viewer/template_entry_form.php on line 11
- > PHP Notice
Undefined index: rendered_citations in wp-content/plugins/pleasant-viewer/template_entry_form.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 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
6 plugin tags: lesson, christian-science, viewer, citations, science-and-health...
pleasant-viewer/pleasant-viewer.php Passed 13 tests
"Pleasant Viewer" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
126 characters long description:
Easily share Wednesday Readings and other Bible and Science and Health citations online. Uses cskit-rb to retrieve citations.
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 plugin462 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 116 | 63 | 327 |
JavaScript | 1 | 28 | 4 | 135 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
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 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected