84% hemmy-core

Code Review | Hemmy Core

WordPress plugin Hemmy Core scored84%from 54 tests.

About plugin

  • Plugin page: hemmy-core
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.0.3
  • WordPress version: 6.3.1
  • First release: Feb 1, 2019
  • Latest release: Feb 1, 2019
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: AbileWeb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /535 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
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Hemmy Core
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.55 ▲0.20
Dashboard /wp-admin3.31 ▲0.0149.59 ▼3.99
Posts /wp-admin/edit.php3.36 ▲0.0148.99 ▼2.09
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.79 ▼8.22
Media Library /wp-admin/upload.php3.23 ▲0.0035.64 ▲0.61

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Hemmy Core
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲2913.23 ▼1.154.36 ▲2.4341.45 ▼1.71
Dashboard /wp-admin2,218 ▲185.86 ▲0.0696.76 ▼6.0738.94 ▼1.80
Posts /wp-admin/edit.php2,097 ▼31.98 ▼0.0238.67 ▲2.6535.89 ▲0.73
Add New Post /wp-admin/post-new.php1,545 ▲1423.32 ▲0.25655.51 ▼30.0650.77 ▼4.07
Media Library /wp-admin/upload.php1,403 ▼04.19 ▼0.05102.11 ▼6.0543.43 ▼1.05

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means 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
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/hemmy-core/widgets/class-hemmy-core-widgets.php:250

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Instagram Widget), #2 (Twitter Widget), #3 (Mailchimp Widget), #4 (Post Additional Options)
Please take inspiration from this readme.txt

hemmy-core/hemmy-core.php Passed 13 tests

Analyzing the main PHP file in "Hemmy Core" version 1.0.0
34 characters long description:
This is core plugin of hemmy theme

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected1,502 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP123847571,460
JavaScript152931
CSS10011

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity8.77
▷ Minimum class complexity1.00
▷ Maximum class complexity32.00
Average method complexity2.57
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes22
▷ Abstract classes29.09%
▷ Concrete classes2090.91%
▷ Final classes00.00%
Methods113
▷ Static methods1210.62%
▷ Public methods9785.84%
▷ Protected methods21.77%
▷ Private methods1412.39%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There are no PNG files in this plugin