94% inspire-dolly

Code Review | Inspire Dolly

WordPress plugin Inspire Dolly scored 94% from 53 tests.

About plugin

  • Plugin page: inspire-dolly
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.3
  • WordPress version: 5.8.1
  • First release: Jul 16, 2014
  • Latest release: Aug 21, 2015
  • Number of updates: 18
  • Update frequency: every 22.3 days
  • Top authors: meabhisek (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 788 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼294.97ms] Passed 4 tests

This is a short check of server-side resources used by Inspire Dolly
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1326.68 ▲5.76
Dashboard /wp-admin3.07 ▲0.0243.86 ▲1.79
Posts /wp-admin/edit.php3.12 ▲0.0144.02 ▲2.34
Add New Post /wp-admin/post-new.php5.43 ▲0.0091.43 ▼1,179.36
Media Library /wp-admin/upload.php3.01 ▲0.0133.65 ▼4.65

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Inspire Dolly
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,682 ▲10015.98 ▲0.4213.68 ▲5.3042.90 ▼5.14
Dashboard /wp-admin2,957 ▲1105.95 ▲0.07134.32 ▼3.17124.52 ▲13.74
Posts /wp-admin/edit.php2,709 ▲32.69 ▲0.0064.82 ▼0.9396.64 ▼1.30
Add New Post /wp-admin/post-new.php3,785 ▲2,13215.38 ▼3.40405.97 ▲37.47107.81 ▲1.60
Media Library /wp-admin/upload.php1,780 ▲85.01 ▼0.03145.71 ▼10.09123.63 ▲6.19

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wptexturize() in wp-content/plugins/inspire-dolly/inspire-dolly.php:93

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: quote, content, inspiration, authors, admin...

inspire-dolly/inspire-dolly.php 92% from 13 tests

The entry point to "Inspire Dolly" version 1.0.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 157 characters long)

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
No dangerous file extensions were detected89 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1142389

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected