Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.14MB] [CPU: ▼147.51ms] Passed 4 tests
A check of server-side resources used by Testimonial WordPress Plugin - AP Custom Testimonial
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.96 ▲0.12 | 22.19 ▼0.88 |
Dashboard /wp-admin | 3.27 ▲0.20 | 41.80 ▲5.69 |
Posts /wp-admin/edit.php | 3.32 ▲0.21 | 34.70 ▲3.15 |
Add New Post /wp-admin/post-new.php | 5.55 ▲0.11 | 74.90 ▼590.80 |
Media Library /wp-admin/upload.php | 3.13 ▲0.12 | 22.49 ▼1.52 |
View Testimonial /wp-admin/admin.php?page=apct_testimonial_view | 3.14 | 20.77 |
Edit Testimonial /wp-admin/admin.php?page=apct_testimonial_edit | 3.18 | 22.79 |
Create Testimonial /wp-admin/admin.php?page=apct_testimonial_create | 3.19 | 26.81 |
Server storage [IO: ▲1.38MB] [DB: ▲0.02MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 65 new files
Database: 1 new table, 3 new options
New tables |
---|
wp_apct_testimonial_detail |
New WordPress options |
---|
apct-settings |
apct_tes_fonts |
widget_apct_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Testimonial WordPress Plugin - AP Custom Testimonial
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,094 ▲493 | 18.21 ▲2.26 | 10.24 ▲1.38 | 117.69 ▲41.41 |
Dashboard /wp-admin | 3,188 ▲293 | 8.64 ▲2.52 | 144.11 ▲6.39 | 182.94 ▲12.16 |
Posts /wp-admin/edit.php | 3,031 ▲294 | 5.04 ▲1.80 | 84.39 ▲19.94 | 138.20 ▼1.68 |
Add New Post /wp-admin/post-new.php | 1,937 ▼1,769 | 21.38 ▲2.34 | 373.24 ▼55.17 | 160.88 ▼5.68 |
Media Library /wp-admin/upload.php | 1,815 ▲63 | 6.04 ▲0.49 | 111.90 ▼36.37 | 184.21 ▼4.89 |
View Testimonial /wp-admin/admin.php?page=apct_testimonial_view | 1,401 | 4.83 | 76.12 | 115.59 |
Edit Testimonial /wp-admin/admin.php?page=apct_testimonial_edit | 2,549 | 10.67 | 213.45 | 247.05 |
Create Testimonial /wp-admin/admin.php?page=apct_testimonial_create | 2,531 | 10.79 | 188.26 | 216.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_apct_testimonial_detail
- Zombie WordPress options were found after uninstall: 3 options
- apct_tes_fonts
- widget_apct_widget
- apct-settings
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
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=apct_testimonial_view
- > Notice in wp-content/plugins/ap-custom-testimonial/inc/model/apct_view_testimonial.php+6
Undefined variable: entry_id
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=apct_testimonial_edit
- > Notice in wp-content/plugins/ap-custom-testimonial/inc/model/apct_current_testimonial.php+41
Undefined variable: row
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=apct_testimonial_edit
- > Notice in wp-content/plugins/ap-custom-testimonial/inc/model/apct_current_testimonial.php+41
Trying to get property 'author_name' of non-object
- 9 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=apct_testimonial_edit
- > Notice in wp-content/plugins/ap-custom-testimonial/inc/model/apct_current_testimonial.php+118
Undefined variable: testim_description
- 9 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=apct_testimonial_edit
- > Notice in wp-content/plugins/ap-custom-testimonial/inc/model/apct_current_testimonial.php+118
Trying to access array offset on value of type null
- > GET request to /wp-admin/admin.php?page=apct_testimonial_view
- > Notice in wp-content/plugins/ap-custom-testimonial/inc/model/apct_view_testimonial.php+79
Undefined variable: new_publiced_date
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=apct_testimonial_edit
- > Notice in wp-content/plugins/ap-custom-testimonial/inc/model/apct_current_testimonial.php+32
Undefined index: id
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 21× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/ap-custom-testimonial/inc/backend/activate.php
- > /wp-content/plugins/ap-custom-testimonial/inc/frontend/templates/template-1.php
- > /wp-content/plugins/ap-custom-testimonial/inc/frontend/shortcode.php
- > /wp-content/plugins/ap-custom-testimonial/inc/model-control/apct-testimonial-action.php
- > /wp-content/plugins/ap-custom-testimonial/inc/frontend/templates/template-2.php
- > /wp-content/plugins/ap-custom-testimonial/inc/backend/save-settings.php
- > /wp-content/plugins/ap-custom-testimonial/inc/model/apct_new_testimonial.php
- > /wp-content/plugins/ap-custom-testimonial/ap-custom-testimonial.php
- > /wp-content/plugins/ap-custom-testimonial/inc/backend/apct-about.php
- > /wp-content/plugins/ap-custom-testimonial/inc/backend/main-page.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/ap-custom-testimonial/inc/backend/apct-sidebar.php:14
- > PHP Warning
Use of undefined constant APCT_IMAGE_DIR - assumed 'APCT_IMAGE_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/ap-custom-testimonial/inc/backend/apct-sidebar.php on line 8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
10 plugin tags: testimonial shortcode, easy, simple, testimonial slider, testimonials...
ap-custom-testimonial/ap-custom-testimonial.php Passed 13 tests
The main file in "Testimonial WordPress Plugin - AP Custom Testimonial" v. 1.4.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
38 characters long description:
A plugin to add testimonial to a site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin7,498 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 91 | 155 | 4,271 |
PHP | 23 | 134 | 116 | 2,439 |
SVG | 1 | 0 | 0 | 565 |
JavaScript | 3 | 25 | 29 | 223 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 16.50 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 27 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 27 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 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
18 PNG files occupy 0.14MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ui-bg_flat_10_000000_40x100.png | 0.20KB | 0.08KB | ▼ 57.56% |
css/images/ui-bg_glass_65_ffffff_1x400.png | 0.20KB | 0.09KB | ▼ 57.49% |
images/ap-custom-testimonial-upgrade-to-pro.png | 48.15KB | 17.38KB | ▼ 63.90% |
css/images/ui-icons_ef8c08_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
images/default.png | 5.65KB | 3.26KB | ▼ 42.31% |