74% ayyash-studio

Code Review | Ayyash Studio — The kick-start kit

WordPress plugin Ayyash Studio — The kick-start kit scored74%from 54 tests.

About plugin

  • Plugin page: ayyash-studio
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.0
  • WordPress version: 6.3.1
  • First release: Jul 24, 2022
  • Latest release: Aug 21, 2022
  • Number of updates: 13
  • Update frequency: every 2.3 days
  • Top authors: themerox (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /438 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲2.06MB] [CPU: ▲25.10ms] Passed 4 tests

Analyzing server-side resources used by Ayyash Studio — The kick-start kit
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /5.52 ▲2.0668.16 ▲23.13
Dashboard /wp-admin5.37 ▲2.0675.53 ▲23.98
Posts /wp-admin/edit.php5.42 ▲2.0682.49 ▲27.08
Add New Post /wp-admin/post-new.php7.95 ▲2.06124.97 ▲26.22
Media Library /wp-admin/upload.php5.29 ▲2.0671.27 ▲35.11
Scheduled Actions /wp-admin/tools.php?page=action-scheduler5.4487.04
Ayyash Studio /wp-admin/themes.php?page=ayyash-studio5.6467.02

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 181 new files
Database: 4 new tables, 10 new options
New tables
wp_actionscheduler_logs
wp_actionscheduler_actions
wp_actionscheduler_claims
wp_actionscheduler_groups
New WordPress options
widget_recent-comments
action_scheduler_hybrid_store_demarkation
widget_recent-posts
action_scheduler_lock_async-request-runner
schema-ActionScheduler_LoggerSchema
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts
schema-ActionScheduler_StoreSchema

Browser metrics Passed 4 tests

Checking browser requirements for Ayyash Studio — The kick-start kit
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲6114.35 ▼0.211.83 ▲0.0539.13 ▼4.75
Dashboard /wp-admin2,206 ▲265.62 ▲0.1087.14 ▼7.8340.34 ▼5.68
Posts /wp-admin/edit.php2,105 ▲51.94 ▼0.0338.92 ▲1.1236.78 ▼0.27
Add New Post /wp-admin/post-new.php1,532 ▲623.19 ▲0.05638.43 ▼31.1959.26 ▼5.29
Media Library /wp-admin/upload.php1,408 ▲114.24 ▲0.10103.36 ▼1.5444.00 ▼0.28
Scheduled Actions /wp-admin/tools.php?page=action-scheduler1,2671.8138.4637.32
Ayyash Studio /wp-admin/themes.php?page=ayyash-studio2,64312.63290.59101.03

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The plugin did not uninstall successfully, leaving 4 tables in the database
    • wp_actionscheduler_claims
    • wp_actionscheduler_actions
    • wp_actionscheduler_groups
    • wp_actionscheduler_logs
  • This plugin does not fully uninstall, leaving 10 options in the database
    • widget_recent-posts
    • schema-ActionScheduler_LoggerSchema
    • widget_recent-comments
    • widget_theysaidso_widget
    • action_scheduler_lock_async-request-runner
    • db_upgraded
    • action_scheduler_hybrid_store_demarkation
    • theysaidso_admin_options
    • schema-ActionScheduler_StoreSchema
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
  • 46× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Abstract_Schedule' not found in wp-content/plugins/ayyash-studio/packages/action-scheduler/classes/schedules/ActionScheduler_SimpleSchedule.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/ayyash-studio/packages/action-scheduler/classes/WP_CLI/ActionScheduler_WPCLI_Scheduler_command.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Lock' not found in wp-content/plugins/ayyash-studio/packages/action-scheduler/classes/ActionScheduler_OptionLock.php:10
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATH/wp-admin/includes/class-wp-importer.php' (include_path='.:/usr/share/php') in wp-content/plugins/ayyash-studio/includes/Importer/Wxr/WXR_Importer.php on line 21
    • > PHP Fatal error
      Uncaught Error: Class 'AyyashStudio\\Importer\\Wxr\\ImporterLogger' not found in wp-content/plugins/ayyash-studio/includes/Importer/Wxr/ServerSentEvents.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'CronExpression_AbstractField' not found in wp-content/plugins/ayyash-studio/packages/action-scheduler/lib/cron-expression/CronExpression_YearField.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Action' not found in wp-content/plugins/ayyash-studio/packages/action-scheduler/classes/actions/ActionScheduler_FinishedAction.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_FinishedAction' not found in wp-content/plugins/ayyash-studio/packages/action-scheduler/classes/actions/ActionScheduler_CanceledAction.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'CronExpression_AbstractField' not found in wp-content/plugins/ayyash-studio/packages/action-scheduler/lib/cron-expression/CronExpression_HoursField.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Abstract_ListTable' not found in wp-content/plugins/ayyash-studio/packages/action-scheduler/classes/ActionScheduler_ListTable.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
Please take inspiration from this readme.txt

ayyash-studio/ayyash-studio.php 92% from 13 tests

This is the main PHP file of "Ayyash Studio — The kick-start kit" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 155 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin17,277 lines of code in 168 files:
LanguageFilesBlank linesComment linesLines of code
PHP1573,7368,74013,185
CSS38353164,040
JavaScript163341
JSON70011

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity12.68
▷ Minimum class complexity1.00
▷ Maximum class complexity259.00
Average method complexity2.69
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces24
Interfaces8
Traits8
Classes126
▷ Abstract classes2015.87%
▷ Concrete classes10684.13%
▷ Final classes76.60%
Methods1,046
▷ Static methods16315.58%
▷ Public methods76773.33%
▷ Protected methods24223.14%
▷ Private methods373.54%
Functions85
▷ Named functions7284.71%
▷ Anonymous functions1315.29%
Constants58
▷ Global constants1017.24%
▷ Class constants4882.76%
▷ Public constants48100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.09MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
build/images/congratulations.f7b5c578.png90.93KB30.09KB▼ 66.90%
build/images/placeholder.561eeb22.png3.07KB0.91KB▼ 70.39%