79% gravitation-testimonials

Code Review | Gravitation Testimonials

WordPress plugin Gravitation Testimonials scored79%from 54 tests.

About plugin

  • Plugin page: gravitation-testi...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3.1-4.4
  • WordPress version: 6.3.1
  • First release: Oct 22, 2015
  • Latest release: Dec 20, 2015
  • Number of updates: 12
  • Update frequency: every 16.9 days
  • Top authors: UlisesFreitas (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /714 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼1.40ms] Passed 4 tests

Server-side resources used by Gravitation Testimonials
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0642.30 ▼3.29
Dashboard /wp-admin3.35 ▲0.0443.25 ▼4.41
Posts /wp-admin/edit.php3.40 ▲0.0547.36 ▲1.83
Add New Post /wp-admin/post-new.php5.93 ▲0.0494.60 ▲2.44
Media Library /wp-admin/upload.php3.27 ▲0.0435.50 ▲0.27
All testimonials /wp-admin/edit.php?post_type=testimonials3.3234.45
Testimonials category /wp-admin/edit-tags.php?taxonomy=gravitation_testimonials_cat&post_type=testimonials3.2632.17
Add New /wp-admin/post-new.php?post_type=testimonials3.3947.92

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Gravitation Testimonials
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲9413.49 ▼0.781.58 ▼0.3440.46 ▼3.84
Dashboard /wp-admin2,241 ▲535.85 ▲0.7297.58 ▼22.1140.45 ▼4.08
Posts /wp-admin/edit.php2,124 ▲352.01 ▲0.0240.36 ▲4.3135.10 ▲0.59
Add New Post /wp-admin/post-new.php1,571 ▲3818.42 ▼4.54606.69 ▼68.2155.88 ▼1.04
Media Library /wp-admin/upload.php1,426 ▲384.18 ▼0.0298.75 ▼3.8343.72 ▲1.02
Help /wp-admin/gravitation-testimonials.php260.440.0714.72
All testimonials /wp-admin/edit.php?post_type=testimonials1,1011.9331.5930.18
Testimonials category /wp-admin/edit-tags.php?taxonomy=gravitation_testimonials_cat&post_type=testimonials1,2942.1426.4827.42
Add New /wp-admin/post-new.php?post_type=testimonials2,3557.64165.1062.01

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/gravitation-testimonials/gravitation-testimonials.php:52

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/gravitation-testimonials.php
    • > Network (severe)
    wp-admin/gravitation-testimonials.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: testimonials, testimonials on widgets, testimonials shortcodes

gravitation-testimonials/gravitation-testimonials.php Passed 13 tests

The principal PHP file in "Gravitation Testimonials" v. 1.1 is loaded by WordPress automatically on each request
91 characters long description:
Gravitation Testimonials, is a plugin to display testimonials on your site, with shortcodes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin15,047 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
CSS5173612,724
JavaScript35821991,602
PHP214962433
SVG100288

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
2 PNG files occupy 0.25MB with 0.17MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png79.63KB27.41KB▼ 65.58%
screenshot-1.png181.40KB51.40KB▼ 71.66%