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.00MB] [CPU: ▼4.33ms] Passed 4 tests
Analyzing server-side resources used by Atom Publishing Protocol
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 32.90 ▼8.41 |
Dashboard /wp-admin | 3.31 ▲0.01 | 41.85 ▼6.26 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.55 ▲3.72 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 88.08 ▼5.54 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.74 ▲2.90 |
Server storage [IO: ▲0.04MB] [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: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Atom Publishing Protocol
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.45 ▲0.07 | 1.62 ▼0.29 | 40.48 ▼6.66 |
Dashboard /wp-admin | 2,209 ▲32 | 5.85 ▲0.97 | 113.44 ▲5.97 | 42.21 ▲4.39 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.01 ▲0.01 | 39.22 ▲4.49 | 34.50 ▼3.05 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 18.71 ▼4.53 | 617.52 ▼52.42 | 56.82 ▲2.99 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.20 ▼0.01 | 93.52 ▼14.24 | 40.68 ▼4.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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 take a closer look at the following
- 4× PHP files trigger server errors when accessed directly:
- > PHP Warning
require_once(ABSPATHWPINC/atomlib.php): failed to open stream: No such file or directory in wp-content/plugins/atom-publishing-protocol/atom-publishing-protocol.php on line 12
- > PHP Warning
Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/atom-publishing-protocol/atom-publishing-protocol.php on line 12
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/atom-publishing-protocol/atom-publishing-protocol.php on line 12
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHWPINC/atomlib.php' (include_path='.:/usr/share/php') in wp-content/plugins/atom-publishing-protocol/atom-publishing-protocol.php on line 12
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
1 plugin tags: atom
atom-publishing-protocol/atom-publishing-protocol.php Passed 13 tests
"Atom Publishing Protocol" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
46 characters long description:
Atom Publishing Protocol support for WordPress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected846 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 250 | 527 | 846 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 74.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 144.00 |
Average method complexity | 3.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.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 | 60 | |
▷ Static methods | 1 | 1.67% |
▷ Public methods | 59 | 98.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.67% |
Functions | 1 | |
▷ Named functions | 1 | 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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected