Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼0.13MB] [CPU: ▼299.74ms] Passed 4 tests
A check of server-side resources used by Pages are Posts
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.09 ▼0.46 | 17.97 ▼31.84 |
Dashboard /wp-admin | 3.45 ▲0.01 | 37.62 ▲5.36 |
Posts /wp-admin/edit.php | 3.68 ▲0.01 | 44.62 ▲7.93 |
Add New Post /wp-admin/post-new.php | 6.94 ▼0.06 | 98.26 ▼1,175.63 |
Media Library /wp-admin/upload.php | 3.33 ▲0.01 | 27.71 ▲3.15 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Pages are Posts: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,842 ▲88 | 15.91 ▲0.25 | 6.13 ▼0.23 | 3.16 ▲0.37 |
Dashboard /wp-admin | 2,888 ▲34 | 6.03 ▼0.13 | 133.68 ▼0.88 | 196.27 ▲30.63 |
Posts /wp-admin/edit.php | 2,694 ▲9 | 3.23 ▼0.01 | 65.12 ▼4.04 | 146.98 ▼7.26 |
Add New Post /wp-admin/post-new.php | 1,752 ▲91 | 20.62 ▲4.31 | 468.14 ▲34.93 | 158.70 ▼5.65 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.42 ▼0.08 | 146.73 ▲4.01 | 189.15 ▲0.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pages-are-posts/pages-are-posts.php:39
- > 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 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
5 plugin tags: pages, feed, tags, rss, tag pages
pages-are-posts/pages-are-posts.php Passed 13 tests
The main PHP script in "Pages are Posts" version 1.1 is automatically included on every request by WordPress
109 characters long description:
Include pages to most views where normally only posts are shown. Adds tags, categories and excerpts to pages.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin24 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 6 | 30 | 24 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.88 |
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 | 2 | |
▷ Named functions | 2 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin