89% themepaw-companion

Code Review | Themepaw Companion

WordPress plugin Themepaw Companion scored89%from 54 tests.

About plugin

  • Plugin page: themepaw-companion
  • Plugin version: 0.7
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.3
  • WordPress version: 6.3.1
  • First release: Apr 10, 2019
  • Latest release: Nov 13, 2019
  • Number of updates: 14
  • Update frequency: every 15.5 days
  • Top authors: mlimon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /3,041 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

A check of server-side resources used by Themepaw Companion
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0032.53 ▼4.79
Dashboard /wp-admin3.31 ▼0.0442.73 ▼22.16
Posts /wp-admin/edit.php3.36 ▲0.0040.44 ▼5.33
Add New Post /wp-admin/post-new.php5.89 ▲0.0078.52 ▼10.40
Media Library /wp-admin/upload.php3.23 ▲0.0032.79 ▼0.15

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 46 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Themepaw Companion
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.35 ▲0.001.68 ▼0.3237.40 ▼4.21
Dashboard /wp-admin2,192 ▲125.56 ▼0.1082.03 ▼6.1841.80 ▼3.34
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0335.03 ▼2.7133.76 ▼3.96
Add New Post /wp-admin/post-new.php1,535 ▲718.10 ▼5.13592.44 ▼65.0160.71 ▲1.10
Media Library /wp-admin/upload.php1,403 ▲34.26 ▲0.1193.52 ▼8.4943.47 ▼1.22

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: elementor addon, elements, elementor, addons, elementor testimonial...

themepaw-companion/themepaw-companion.php 85% from 13 tests

The main file in "Themepaw Companion" v. 0.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")
  • Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin29,133 lines of code in 34 files:
LanguageFilesBlank linesComment linesLines of code
CSS97202615,023
JavaScript72,0341,6937,508
PHP107073955,393
Sass711944847
SVG100362

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity20.11
▷ Minimum class complexity1.00
▷ Maximum class complexity80.00
Average method complexity2.85
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes111.11%
Methods93
▷ Static methods33.23%
▷ Public methods7277.42%
▷ Protected methods1920.43%
▷ Private methods22.15%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/cube.png1.14KB0.56KB▼ 50.73%
assets/images/xplaceholder.png4.19KB1.97KB▼ 52.93%
assets/images/placeholder.png5.09KB2.42KB▼ 52.44%