84% eetheart-functions

Code Review | Eetheart Functions

WordPress plugin Eetheart Functions scored84%from 54 tests.

About plugin

  • Plugin page: eetheart-functions
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1
  • WordPress version: 6.3.1
  • First release: Jan 26, 2015
  • Latest release: Jan 26, 2015
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: Eetheart (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /736 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.00MB] [CPU: ▼5.60ms] Passed 4 tests

Server-side resources used by Eetheart Functions
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.63 ▼4.82
Dashboard /wp-admin3.31 ▲0.0145.70 ▼6.21
Posts /wp-admin/edit.php3.36 ▲0.0048.56 ▲0.21
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.72 ▼11.56
Media Library /wp-admin/upload.php3.23 ▲0.0039.89 ▲4.00

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Eetheart Functions
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲5514.23 ▼0.032.41 ▲0.7240.96 ▼4.79
Dashboard /wp-admin2,198 ▲215.64 ▼0.0791.50 ▲3.6636.82 ▼5.60
Posts /wp-admin/edit.php2,103 ▲32.06 ▲0.0339.99 ▲1.8335.89 ▼1.00
Add New Post /wp-admin/post-new.php1,545 ▼523.24 ▲0.22675.90 ▲46.4255.64 ▲8.08
Media Library /wp-admin/upload.php1,400 ▼04.27 ▼0.02111.75 ▼3.3050.29 ▲1.68

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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: 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 errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/eetheart-functions/eetheart-functions.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: Screenshot #1 (screenshot-1.png) image not found
Please take inspiration from this readme.txt

eetheart-functions/eetheart-functions.php Passed 13 tests

The main PHP script in "Eetheart Functions" version 1.0 is automatically included on every request by WordPress
79 characters long description:
Used for coding. Don't remove or deactivate, unless you know what you're doing.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin8 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP11116
JavaScript1322

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems 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%
Functions1
▷ Named functions1100.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
PNG images were not found in this plugin