84% echoza

Code Review | Echoza

WordPress plugin Echoza scored84%from 54 tests.

About plugin

  • Plugin page: echoza
  • Plugin version: 0.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9
  • WordPress version: 6.3.1
  • First release: Nov 7, 2018
  • Latest release: Nov 21, 2018
  • Number of updates: 8
  • Update frequency: every 2.0 days
  • Top authors: think201 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /603 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼6.01ms] Passed 4 tests

An overview of server-side resources used by Echoza
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0535.56 ▼4.87
Dashboard /wp-admin3.38 ▲0.0850.06 ▲0.01
Posts /wp-admin/edit.php3.50 ▲0.1453.39 ▲5.48
Add New Post /wp-admin/post-new.php5.94 ▲0.0684.09 ▼21.52
Media Library /wp-admin/upload.php3.29 ▲0.0635.37 ▲2.34

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 11 new options
New WordPress options
db_upgraded
widget_recent-comments
echoza_app_secret
echoza_version
can_compress_scripts
echoza_app_key
theysaidso_admin_options
widget_recent-posts
echoza_enabled
echoza_endpoint
...

Browser metrics Passed 4 tests

Checking browser requirements for Echoza
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,942 ▲20714.62 ▼0.061.66 ▼0.0841.90 ▲0.79
Dashboard /wp-admin2,345 ▲1566.41 ▲0.50129.91 ▲27.0144.99 ▲1.22
Posts /wp-admin/edit.php2,259 ▲1703.35 ▲1.3352.88 ▲15.1636.73 ▲1.83
Add New Post /wp-admin/post-new.php1,539 ▲523.26 ▲0.27625.35 ▲22.6036.94 ▼15.08
Media Library /wp-admin/upload.php1,390 ▲24.14 ▼0.1379.65 ▼18.3642.08 ▲0.95

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Echoza\\add_action() in wp-content/plugins/echoza/includes/admin/echoza-admin-post.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/echoza/pages/admin/notice.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/echoza/echoza.php:38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/echoza/pages/admin/settings.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: error reporting, echoza, issue reporting

echoza/echoza.php Passed 13 tests

The primary PHP file in "Echoza" version 0.1.1 is used by WordPress to initiate all plugin functionality
59 characters long description:
Plugin enables user to integrate their website with Echoza.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin363 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP820036346
JavaScript17117

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity3.80
▷ Minimum class complexity1.00
▷ Maximum class complexity7.00
Average method complexity1.58
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods24
▷ Static methods1666.67%
▷ Public methods1979.17%
▷ Protected methods00.00%
▷ Private methods520.83%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants6
▷ Global constants6100.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
No PNG images were found in this plugin