84% eve-online-pheal-api

Code Review | Eve Online Pheal API

WordPress plugin Eve Online Pheal API scored84%from 54 tests.

About plugin

  • Plugin page: eve-online-pheal-api
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-3.5.1
  • WordPress version: 6.3.1
  • First release: May 29, 2013
  • Latest release: May 29, 2013
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: Tumeski (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,243 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼7.07MB] [CPU: ▼1,432,596.50ms] Passed 4 tests

Analyzing server-side resources used by Eve Online Pheal API
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0146.06 ▲0.61
Dashboard /wp-admin3.36 ▼28.3050.14 ▼5,730,372.74
Posts /wp-admin/edit.php3.41 ▲0.0152.25 ▼4.77
Add New Post /wp-admin/post-new.php5.94 ▲0.0195.05 ▼9.09
Media Library /wp-admin/upload.php3.28 ▲0.0137.69 ▲5.36

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Eve Online Pheal API
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.21 ▼0.141.71 ▼0.0146.76 ▲1.34
Dashboard /wp-admin2,195 ▲185.61 ▼0.0594.88 ▼3.5841.76 ▼0.76
Posts /wp-admin/edit.php2,100 ▲32.02 ▲0.0739.26 ▲3.0336.52 ▼0.48
Add New Post /wp-admin/post-new.php1,535 ▲718.72 ▼4.39628.13 ▼119.1166.48 ▲5.48
Media Library /wp-admin/upload.php1,403 ▲34.23 ▲0.08100.33 ▼5.5641.46 ▲0.37

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • 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
Everything seems fine, however this is by no means 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
The following issues need your attention
  • 20× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'PhealException' not found in wp-content/plugins/eve-online-pheal-api/phealclass/PhealAPIException.php:31
    • > PHP Fatal error
      Uncaught Error: Interface 'PhealAccessInterface' not found in wp-content/plugins/eve-online-pheal-api/phealclass/PhealNullAccess.php:31
    • > PHP Fatal error
      Uncaught Error: Interface 'PhealArrayInterface' not found in wp-content/plugins/eve-online-pheal-api/phealclass/PhealRowSet.php:31
    • > PHP Fatal error
      Uncaught Error: Interface 'PhealArrayInterface' not found in wp-content/plugins/eve-online-pheal-api/phealclass/PhealRowSetRow.php:31
    • > PHP Fatal error
      Uncaught Error: Class 'PhealException' not found in wp-content/plugins/eve-online-pheal-api/phealclass/PhealAccessException.php:30
    • > PHP Fatal error
      Uncaught Error: Interface 'PhealArrayInterface' not found in wp-content/plugins/eve-online-pheal-api/phealclass/PhealElement.php:31
    • > PHP Fatal error
      Uncaught Error: Interface 'PhealArrayInterface' not found in wp-content/plugins/eve-online-pheal-api/phealclass/PhealContainer.php:32
    • > PHP Fatal error
      Uncaught Error: Interface 'PhealCacheInterface' not found in wp-content/plugins/eve-online-pheal-api/phealclass/PhealNullCache.php:31
    • > PHP Fatal error
      Uncaught Error: Class 'PhealException' not found in wp-content/plugins/eve-online-pheal-api/phealclass/PhealConnectionException.php:30
    • > PHP Fatal error
      Uncaught Error: Interface 'PhealLogInterface' not found in wp-content/plugins/eve-online-pheal-api/phealclass/PhealFileLog.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: api, eve online, class, eve

eve-online-pheal-api/eve-phealapi.php 92% from 13 tests

"Eve Online Pheal API" version 0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("eve-online-pheal-api.php" instead of "eve-phealapi.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected1,330 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
PHP303311,5501,081
Markdown1590224
JSON10025

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity6.62
▷ Minimum class complexity1.00
▷ Maximum class complexity56.00
Average method complexity3.36
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces5
Traits0
Classes24
▷ Abstract classes00.00%
▷ Concrete classes24100.00%
▷ Final classes00.00%
Methods78
▷ Static methods67.69%
▷ Public methods7089.74%
▷ Protected methods810.26%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin