68% mega-testimonial

Code Review | Testimonial

WordPress plugin Testimonial scored68%from 54 tests.

About plugin

  • Plugin page: mega-testimonial
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.0-4.7.3
  • WordPress version: 6.3.1
  • First release: Mar 12, 2017
  • Latest release: Mar 17, 2017
  • Number of updates: 5
  • Update frequency: every 1.0 days
  • Top authors: aihimel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /519 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.90MB] [CPU: ▼34.49ms] Passed 4 tests

Analyzing server-side resources used by Testimonial
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0839.27 ▼6.42
Dashboard /wp-admin3.04 ▼0.2623.83 ▼34.65
Posts /wp-admin/edit.php3.04 ▼0.3222.52 ▼27.32
Add New Post /wp-admin/post-new.php3.04 ▼2.8524.16 ▼67.45
Media Library /wp-admin/upload.php3.04 ▼0.1923.65 ▼8.54
Settings /wp-admin/edit.php?post_type=custom_posts&page=tm-submenu3.0423.19
All Testimonials /wp-admin/edit.php?post_type=custom_posts3.0424.90
Add New /wp-admin/post-new.php?post_type=custom_posts3.0422.27
Groups /wp-admin/edit-tags.php?taxonomy=group&post_type=custom_posts3.0423.53

Server storage [IO: ▲1.18MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 57 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
gb_mega-testimonial
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Testimonial
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲10313.21 ▼1.191.73 ▼0.2843.69 ▼8.79
Dashboard /wp-admin2,241 ▲505.82 ▲0.9998.28 ▼15.9640.31 ▼6.00
Posts /wp-admin/edit.php2,124 ▲382.03 ▼0.0235.40 ▲0.7034.99 ▼1.62
Add New Post /wp-admin/post-new.php1,563 ▲2723.19 ▲0.09668.24 ▲38.2159.19 ▲7.01
Media Library /wp-admin/upload.php1,420 ▲294.25 ▲0.03109.96 ▲11.5347.12 ▲5.33
Settings /wp-admin/edit.php?post_type=custom_posts&page=tm-submenu1,6982.3340.89125.22
All Testimonials /wp-admin/edit.php?post_type=custom_posts1,1371.9430.5930.05
Add New /wp-admin/post-new.php?post_type=custom_posts6,39020.40927.8939.43
Groups /wp-admin/edit-tags.php?taxonomy=group&post_type=custom_posts1,3082.1426.4026.94

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/mega-testimonial/mega-testimonial.php+330
    Function create_function() is deprecated
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • gb_mega-testimonial
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% 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
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/edit-tags.php?taxonomy=group&post_type=custom_posts
    • > Deprecated in wp-content/plugins/mega-testimonial/mega-testimonial.php+330
    Function create_function() is deprecated

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
    • > GET request to /wp-admin/edit.php?post_type=custom_posts&page=tm-submenu
    • > Network (severe)
    wp-content/plugins/mega-testimonial/external/bootstrap-3.3.7/font/roboto/Roboto-Bold.woff2 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=custom_posts&page=tm-submenu
    • > Network (severe)
    wp-content/plugins/mega-testimonial/external/bootstrap-3.3.7/font/roboto/Roboto-Regular.woff2 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=custom_posts&page=tm-submenu
    • > Network (severe)
    wp-content/plugins/mega-testimonial/external/bootstrap-3.3.7/font/roboto/Roboto-Light.woff2 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=custom_posts&page=tm-submenu
    • > Network (severe)
    wp-content/plugins/mega-testimonial/external/bootstrap-3.3.7/font/roboto/Roboto-Bold.woff - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=custom_posts&page=tm-submenu
    • > Network (severe)
    wp-content/plugins/mega-testimonial/external/bootstrap-3.3.7/font/roboto/Roboto-Regular.woff - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=custom_posts&page=tm-submenu
    • > Network (severe)
    wp-content/plugins/mega-testimonial/external/bootstrap-3.3.7/font/roboto/Roboto-Light.woff - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=custom_posts&page=tm-submenu
    • > Network (severe)
    wp-content/plugins/mega-testimonial/external/bootstrap-3.3.7/font/roboto/Roboto-Bold.ttf - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=custom_posts&page=tm-submenu
    • > Network (severe)
    wp-content/plugins/mega-testimonial/external/bootstrap-3.3.7/font/roboto/Roboto-Regular.ttf - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=custom_posts&page=tm-submenu
    • > Network (severe)
    wp-content/plugins/mega-testimonial/external/bootstrap-3.3.7/font/roboto/Roboto-Light.ttf - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% 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:
  • Tags: You are using too many tags: 15 tag instead of maximum 10
The official readme.txt might help

mega-testimonial/mega-testimonial.php Passed 13 tests

The main PHP file in "Testimonial" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
130 characters long description:
Mega Testimonials is the perfect tool for arranging and expressing the testimonials/reviews from your people you want to show off.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin2,056 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
PHP131593621,385
CSS81653350
SVG100288
JavaScript682633

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity32.00
▷ Minimum class complexity32.00
▷ Maximum class complexity32.00
Average method complexity2.72
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
8 PNG files occupy 0.43MB with 0.26MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/sn_one.png47.68KB17.30KB▼ 63.71%
assets/img/gn_fade.png52.32KB18.84KB▼ 63.99%
assets/img/gb_logo.png14.08KB6.17KB▼ 56.16%
assets/img/tm_banner.png165.63KB60.53KB▼ 63.45%
assets/img/default.png22.17KB10.70KB▼ 51.74%