74% easysummit

Code Review | Easy Summit

WordPress plugin Easy Summit scored74%from 54 tests.

About plugin

  • Plugin page: easysummit
  • Plugin version: 2.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.5.3
  • WordPress version: 6.3.1
  • First release: Jul 5, 2016
  • Latest release: Sep 29, 2016
  • Number of updates: 32
  • Update frequency: every 5.2 days
  • Top authors: webdesignerchristian (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /777 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼1.60MB] [CPU: ▼54.38ms] Passed 4 tests

Server-side resources used by Easy Summit
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.39 ▼1.076.24 ▼36.24
Dashboard /wp-admin2.41 ▼0.907.10 ▼48.26
Posts /wp-admin/edit.php2.41 ▼0.957.30 ▼46.31
Add New Post /wp-admin/post-new.php2.41 ▼3.487.34 ▼86.71
Media Library /wp-admin/upload.php2.41 ▼0.829.27 ▼27.09

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
recovery_mode_email_last_sent
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Easy Summit
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,729 ▼1713.55 ▼1.202.73 ▲0.8423.62 ▼20.40
Dashboard /wp-admin2,223 ▲325.05 ▼0.89104.57 ▼11.3582.69 ▲38.83
Posts /wp-admin/edit.php2,122 ▲332.30 ▲0.2436.80 ▼1.1434.02 ▼5.38
Add New Post /wp-admin/post-new.php45 ▼1,4880.44 ▼22.500.11 ▼669.1010.34 ▼36.62
Media Library /wp-admin/upload.php1,408 ▲234.40 ▲0.13100.64 ▼3.3985.18 ▲39.20

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Uninstall procedure had uncaught errors
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the ezs handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • recovery_mode_email_last_sent
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/easysummit/ezs-core-functions/ezs-hooks.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/easysummit/ez-manager.php:27

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Tags: There are too many tags (12 tag instead of maximum 10)
The official readme.txt is a good inspiration

easysummit/ez-manager.php 92% from 13 tests

Analyzing the main PHP file in "Easy Summit" version 2.0.2
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("easysummit.php" instead of "ez-manager.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin1,466 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP39071091,157
CSS15910207
JavaScript13012102

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.23
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%
Functions31
▷ Named functions31100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin