Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲1.25MB] [CPU: ▲7.60ms] Passed 4 tests
This is a short check of server-side resources used by Apple Theme Pack
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.72 ▲1.25 | 44.62 ▲8.64 |
Dashboard /wp-admin | 4.54 ▲1.24 | 55.37 ▲11.03 |
Posts /wp-admin/edit.php | 4.70 ▲1.34 | 54.06 ▲7.53 |
Add New Post /wp-admin/post-new.php | 7.15 ▲1.27 | 102.07 ▲3.19 |
Media Library /wp-admin/upload.php | 4.47 ▲1.24 | 47.75 ▲14.35 |
Add New /wp-admin/post-new.php?post_type=apple_team | 4.58 | 55.17 |
Add New /wp-admin/post-new.php?post_type=apple_pricing | 4.54 | 49.03 |
Pricing /wp-admin/edit.php?post_type=apple_pricing | 4.55 | 47.17 |
Add New /wp-admin/post-new.php?post_type=apple_stat | 4.54 | 49.89 |
Features /wp-admin/edit.php?post_type=apple_feature | 4.55 | 41.63 |
Team Members /wp-admin/edit.php?post_type=apple_team | 4.55 | 41.80 |
Apple Theme Pack /wp-admin/plugins.php?page=apple-theme-pack-welcome-screen | 4.44 | 42.94 |
Add New /wp-admin/post-new.php?post_type=apple_client | 4.58 | 53.08 |
Add New /wp-admin/post-new.php?post_type=apple_project | 4.62 | 52.95 |
Add New /wp-admin/post-new.php?post_type=apple_feature | 4.62 | 57.76 |
Server storage [IO: ▲2.49MB] [DB: ▲0.02MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 77 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Apple Theme Pack
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,177 ▲431 | 13.30 ▼1.37 | 1.75 ▼0.00 | 32.94 ▼8.75 |
Dashboard /wp-admin | 2,547 ▲355 | 4.93 ▼0.01 | 106.88 ▼10.20 | 51.79 ▲11.91 |
Posts /wp-admin/edit.php | 2,441 ▲352 | 2.12 ▲0.11 | 39.10 ▲4.00 | 39.04 ▲4.58 |
Add New Post /wp-admin/post-new.php | 3,245 ▲1,712 | 23.51 ▲0.16 | 659.43 ▼21.54 | 55.22 ▲0.88 |
Media Library /wp-admin/upload.php | 1,743 ▲355 | 4.29 ▲0.14 | 100.90 ▼6.80 | 54.36 ▲6.27 |
Add New /wp-admin/post-new.php?post_type=apple_team | 3,549 | 4.23 | 74.92 | 42.20 |
Add New /wp-admin/post-new.php?post_type=apple_pricing | 3,406 | 3.23 | 57.98 | 38.72 |
Pricing /wp-admin/edit.php?post_type=apple_pricing | 1,412 | 2.04 | 33.96 | 35.76 |
Add New /wp-admin/post-new.php?post_type=apple_stat | 3,264 | 2.98 | 60.48 | 41.40 |
Features /wp-admin/edit.php?post_type=apple_feature | 1,412 | 2.10 | 36.24 | 33.10 |
Team Members /wp-admin/edit.php?post_type=apple_team | 1,412 | 2.04 | 35.12 | 33.95 |
Apple Theme Pack /wp-admin/plugins.php?page=apple-theme-pack-welcome-screen | 1,331 | 2.09 | 27.04 | 41.01 |
Add New /wp-admin/post-new.php?post_type=apple_client | 3,412 | 4.33 | 70.03 | 38.96 |
Add New /wp-admin/post-new.php?post_type=apple_project | 4,021 | 7.79 | 180.44 | 72.04 |
Add New /wp-admin/post-new.php?post_type=apple_feature | 4,031 | 7.77 | 172.40 | 64.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/apple-theme-pack/app/views/admin/welcome/whats-new.php
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function atp_welcome_page_current_tab() in wp-content/plugins/apple-theme-pack/app/views/admin/welcome/nav.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/apple-theme-pack/vendor/tgmpa/class-tgm-plugin-activation.php:1910
- > PHP Fatal error
Uncaught Error: Call to undefined function atp_is_apple_theme_active() in wp-content/plugins/apple-theme-pack/app/views/admin/welcome/required-actions.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/apple-theme-pack/app/views/admin/welcome/sidebar.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function atp_welcome_page_current_tab() in wp-content/plugins/apple-theme-pack/app/views/admin/welcome/main.php:65
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== apple-theme-pack ===
)
apple-theme-pack/main.php 92% from 13 tests
The main PHP file in "Apple Theme Pack" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("apple-theme-pack.php" instead of "main.php")
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
Success! There were no dangerous files found in this plugin6,683 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 29 | 1,463 | 2,528 | 5,585 |
SVG | 1 | 0 | 0 | 655 |
CSS | 5 | 20 | 9 | 395 |
JavaScript | 4 | 9 | 0 | 48 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 24.15 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 178.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 27 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 27 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 344 | |
▷ Static methods | 9 | 2.62% |
▷ Public methods | 286 | 83.14% |
▷ Protected methods | 57 | 16.57% |
▷ Private methods | 1 | 0.29% |
Functions | 13 | |
▷ Named functions | 11 | 84.62% |
▷ Anonymous functions | 2 | 15.38% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.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
6 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/client5.png | 3.10KB | 1.79KB | ▼ 42.04% |
assets/images/client2.png | 3.14KB | 1.87KB | ▼ 40.53% |
assets/images/client1.png | 3.47KB | 2.12KB | ▼ 38.83% |
assets/images/client3.png | 3.47KB | 2.10KB | ▼ 39.57% |
assets/images/client6.png | 3.48KB | 1.99KB | ▼ 42.69% |