84% averroes

Code Review | Averroes

WordPress plugin Averroes scored84%from 54 tests.

About plugin

  • Plugin page: averroes
  • Plugin version: 1.1.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-4.9.6
  • WordPress version: 6.3.1
  • First release: Jun 14, 2018
  • Latest release: Aug 9, 2018
  • Number of updates: 9
  • Update frequency: every 6.2 days
  • Top authors: youknowriad (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active /2,154 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼9.91ms] Passed 4 tests

Server-side resources used by Averroes
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.98 ▼1.51
Dashboard /wp-admin3.33 ▼0.0247.71 ▼17.00
Posts /wp-admin/edit.php3.38 ▲0.0243.28 ▼2.49
Add New Post /wp-admin/post-new.php5.91 ▲0.0280.81 ▼18.63
Media Library /wp-admin/upload.php3.25 ▲0.0237.38 ▲3.89

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Averroes: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.22 ▼1.011.69 ▲0.1040.75 ▲4.61
Dashboard /wp-admin2,209 ▲185.88 ▼0.0395.76 ▼8.6538.25 ▼7.04
Posts /wp-admin/edit.php2,086 ▼32.01 ▼0.0035.06 ▲1.1536.41 ▼0.65
Add New Post /wp-admin/post-new.php1,532 ▲825.07 ▲2.02703.42 ▲28.8437.22 ▼26.93
Media Library /wp-admin/upload.php1,388 ▼34.17 ▲0.01104.17 ▲3.9943.89 ▼3.57

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means 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
Please fix the following
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/averroes/lib/editor-script.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/averroes/lib/i18n-script.php:50
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/averroes/languages/averroes-translations.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/averroes/lib/i18n-script.php:50

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 Passed 29 tests

readme.txt Passed 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
4 plugin tags: gutenberg, averroes, markdown, editor

averroes/averroes.php Passed 13 tests

This is the main PHP file of "Averroes" version 1.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
96 characters long description:
A Gutenberg compatible markdown editor. Write in Markdown, edit in Markdown and preview in HTML.

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
No dangerous file extensions were detected82 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP5175876
JavaScript20164
CSS1002

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected