78% imaq-core

Code Review | IMAQ CORE

WordPress plugin IMAQ CORE scored 78% from 54 tests.

About plugin

  • Plugin page: imaq-core
  • Plugin version: 1.2.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.7
  • WordPress version: 6.3.1
  • First release: May 30, 2021
  • Latest release: Jun 5, 2021
  • Number of updates: 4
  • Update frequency: every 4.0 days
  • Top authors: imaqpress (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 434 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.49MB] [CPU: ▲4.14ms] Passed 4 tests

A check of server-side resources used by IMAQ CORE
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.94 ▲0.4841.80 ▲0.71
Dashboard /wp-admin3.77 ▲0.4751.49 ▼0.41
Posts /wp-admin/edit.php3.89 ▲0.5368.87 ▲22.72
Add New Post /wp-admin/post-new.php6.72 ▲0.84104.42 ▲11.72
Media Library /wp-admin/upload.php3.70 ▲0.4739.91 ▲4.54
IMAQ URL Settings /wp-admin/options-general.php?page=IMAQ_url_settings3.6634.11
View Members /wp-admin/edit.php?post_type=team3.7438.09
Category /wp-admin/edit-tags.php?taxonomy=journal_article_cat&post_type=journal_article3.6937.47
Category /wp-admin/edit-tags.php?taxonomy=team_cat&post_type=team3.6935.46
Add Journal Article /wp-admin/post-new.php?post_type=journal_article6.7189.89
View Events /wp-admin/edit.php?post_type=event3.7439.63
View Journal Articles /wp-admin/edit.php?post_type=journal_article3.7438.66
Category /wp-admin/edit-tags.php?taxonomy=book_cat&post_type=book3.6938.24
Add Event /wp-admin/post-new.php?post_type=event6.7192.36
View Books /wp-admin/edit.php?post_type=book3.7437.81

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 56 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

IMAQ CORE: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,065 ▲30813.72 ▼0.877.28 ▲5.3739.07 ▼4.52
Dashboard /wp-admin2,340 ▲1555.90 ▲0.09108.27 ▼22.7346.04 ▼4.99
Posts /wp-admin/edit.php2,222 ▲1332.02 ▼0.0140.60 ▲5.4437.38 ▲3.21
Add New Post /wp-admin/post-new.php1,628 ▲11417.81 ▲0.33612.80 ▼96.2054.08 ▲0.98
Media Library /wp-admin/upload.php1,525 ▲1404.26 ▲0.0598.84 ▼6.6543.71 ▼3.94
IMAQ URL Settings /wp-admin/options-general.php?page=IMAQ_url_settings9652.1925.1824.37
View Members /wp-admin/edit.php?post_type=team1,1941.9931.9531.84
Category /wp-admin/edit-tags.php?taxonomy=journal_article_cat&post_type=journal_article1,3992.2927.1929.90
Category /wp-admin/edit-tags.php?taxonomy=team_cat&post_type=team1,3962.3027.2929.77
Add Journal Article /wp-admin/post-new.php?post_type=journal_article6,54924.61900.0531.02
View Events /wp-admin/edit.php?post_type=event1,1912.0031.3732.28
View Journal Articles /wp-admin/edit.php?post_type=journal_article1,1841.9633.5132.49
Category /wp-admin/edit-tags.php?taxonomy=book_cat&post_type=book1,3932.3227.7531.09
Add Event /wp-admin/post-new.php?post_type=event1,62216.86722.4833.17
View Books /wp-admin/edit.php?post_type=book1,1762.0136.4233.19

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% 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 0% 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
  • 6× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/imaq-core/academix-core.php
    • > /wp-content/plugins/imaq-core/custom-posts/event.php
    • > /wp-content/plugins/imaq-core/custom-posts/team.php
    • > /wp-content/plugins/imaq-core/custom-posts/book.php
    • > /wp-content/plugins/imaq-core/custom-posts/journal-article.php
    • > /wp-content/plugins/imaq-core/kc-addons/kc-blocks-load.php
  • 39× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/imaq-core/shortcodes/fluent-form-shortcode.php:51
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/imaq-core/shortcodes/event-list-shortcode.php:133
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/imaq-core/kc-addons/rushmore-journal-article.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/imaq-core/shortcodes/team-profile-section-shortcode.php:182
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/imaq-core/libs/AcademixCorePermalink.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/imaq-core/kc-addons/rushmore-info-block-image.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/imaq-core/kc-addons/rushmore-selected-publications.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/imaq-core/kc-addons/rushmore-book-list.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/imaq-core/shortcodes/button-shortcode.php:63
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/imaq-core/shortcodes/info-block-icon-shortcode.php:63

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (Example of multiple predefined demo imports, that a user can choose from.) image required
You can look at the official readme.txt

imaq-core/academix-core.php 85% from 13 tests

The entry point to "IMAQ CORE" version 1.2.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 185 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("imaq-core.php" instead of "academix-core.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
There were no executable files found in this plugin5,096 lines of code in 54 files:
LanguageFilesBlank linesComment linesLines of code
PHP457753694,972
JavaScript5122274
Sass10028
CSS31122

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity3.50
▷ Minimum class complexity2.00
▷ Maximum class complexity5.00
Average method complexity1.62
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods888.89%
▷ Protected methods00.00%
▷ Private methods111.11%
Functions58
▷ Named functions5493.10%
▷ Anonymous functions46.90%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin