10% appcastlenet-api

Code Review | appcastle.net API

WordPress plugin appcastle.net API scored10%from 54 tests.

About plugin

  • Plugin page: appcastlenet-api
  • Plugin version: 0.7.28
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.7
  • WordPress version: 6.3.1
  • First release: Nov 1, 2013
  • Latest release: Dec 18, 2013
  • Number of updates: 6
  • Update frequency: every 7.8 days
  • Top authors: mario.hiller@codecastle.de (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /857 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Warning in wp-content/plugins/appcastlenet-api/appcastle.php+132
    Declaration of AcPlugin_Upgrader_Skin::feedback($feedback) should be compatible with WP_Upgrader_Skin::feedback($feedback, ...$args)

Server metrics [RAM: ▼1.92MB] [CPU: ▼50.40ms] Passed 4 tests

Server-side resources used by appcastle.net API
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.394.62 ▼34.60
Dashboard /wp-admin2.09 ▼1.217.26 ▼39.51
Posts /wp-admin/edit.php2.09 ▼1.266.11 ▼38.52
Add New Post /wp-admin/post-new.php2.09 ▼3.806.66 ▼88.95
Media Library /wp-admin/upload.php2.09 ▼1.146.92 ▼27.11
appcastle.net Settings /wp-admin/options-general.php?page=appcastle2.095.70

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 8 new options
New WordPress options
appcastle_enable_access
can_compress_scripts
db_upgraded
appcastle_api_key
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for appcastle.net API
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.48 ▲0.101.72 ▼0.0243.37 ▼1.45
Dashboard /wp-admin2,213 ▲254.84 ▼0.06111.11 ▼3.7743.03 ▼5.29
Posts /wp-admin/edit.php2,093 ▲42.02 ▼0.1433.58 ▼2.2434.45 ▲0.07
Add New Post /wp-admin/post-new.php1,536 ▼222.96 ▼0.26666.74 ▲29.9756.69 ▲5.94
Media Library /wp-admin/upload.php1,395 ▲104.22 ▲0.0594.71 ▼3.7543.52 ▲2.14
appcastle.net Settings /wp-admin/options-general.php?page=appcastle8022.1822.1825.49

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Warning in wp-content/plugins/appcastlenet-api/appcastle.php+132
    Declaration of AcPlugin_Upgrader_Skin::feedback($feedback) should be compatible with WP_Upgrader_Skin::feedback($feedback, ...$args)
  • Zombie WordPress options detected upon uninstall: 8 options
    • theysaidso_admin_options
    • widget_recent-posts
    • appcastle_enable_access
    • widget_recent-comments
    • db_upgraded
    • appcastle_api_key
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=appcastle
    • > Warning in wp-content/plugins/appcastlenet-api/appcastle.php+132
    Declaration of AcPlugin_Upgrader_Skin::feedback($feedback) should be compatible with WP_Upgrader_Skin::feedback($feedback, ...$args)
    • > GET request to /wp-admin/options-general.php?page=appcastle
    • > Warning in wp-content/plugins/appcastlenet-api/appcastle.php+155
    Declaration of AcTheme_Upgrader_Skin::feedback($feedback) should be compatible with WP_Upgrader_Skin::feedback($feedback, ...$args)
    • > GET request to /wp-admin/options-general.php?page=appcastle
    • > Warning in wp-content/plugins/appcastlenet-api/appcastle.php+182
    Declaration of AcCore_Upgrader_Skin::feedback($feedback) should be compatible with WP_Upgrader_Skin::feedback($feedback, ...$args)
    • > GET request to /wp-admin/options-general.php?page=appcastle
    • > Notice in wp-content/plugins/appcastlenet-api/AcAdminInterface.php+22
    Undefined variable: message

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Notice
      Undefined index: action in wp-content/plugins/appcastlenet-api/appcastle_api.php on line 10
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATH/wp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/appcastlenet-api/AcPlugin.php on line 10
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/appcastlenet-api/AcPlugin.php on line 10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/appcastlenet-api/appcastle.php:66
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/appcastlenet-api/AcAdminInterface.php:15
    • > PHP Warning
      require_once(ABSPATH/wp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/appcastlenet-api/AcPlugin.php on line 10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === appcastlenet-api === )
You can look at the official readme.txt

appcastlenet-api/appcastle.php 85% from 13 tests

This is the main PHP file of "appcastle.net API" version 0.7.28, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("appcastlenet-api.php" instead of "appcastle.php")

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
There were no executable files found in this plugin458 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP615867448
PO File15610

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity8.50
▷ Minimum class complexity1.00
▷ Maximum class complexity19.00
Average method complexity2.22
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods37
▷ Static methods1745.95%
▷ Public methods37100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.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
PNG images were not found in this plugin