84% post-generator-from-idml

Code Review | = Post Generator from IDML

WordPress plugin = Post Generator from IDML scored84%from 54 tests.

About plugin

  • Plugin page: post-generator-fr...
  • Plugin version: 0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-4.9
  • WordPress version: 6.3.1
  • First release: Apr 18, 2018
  • Latest release: Apr 18, 2018
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: ghifari160 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /886 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

Server-side resources used by = Post Generator from IDML
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.82 ▼11.77
Dashboard /wp-admin3.32 ▲0.0148.91 ▲0.27
Posts /wp-admin/edit.php3.37 ▲0.0147.78 ▼5.86
Add New Post /wp-admin/post-new.php5.90 ▲0.0193.12 ▼6.43
Media Library /wp-admin/upload.php3.24 ▲0.0137.76 ▲1.39

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by = Post Generator from IDML
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.24 ▼1.141.82 ▼0.1342.73 ▼2.09
Dashboard /wp-admin2,210 ▲315.91 ▲0.08112.06 ▲10.9740.17 ▲0.11
Posts /wp-admin/edit.php2,096 ▲72.04 ▲0.0540.57 ▲0.1233.29 ▼4.80
Add New Post /wp-admin/post-new.php6,220 ▲4,67825.82 ▲7.41845.96 ▲226.3684.40 ▲24.59
Media Library /wp-admin/upload.php1,395 ▲44.15 ▼0.1199.70 ▲1.7642.82 ▼0.15

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-generator-from-idml/g16WPIDML.php:85

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)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: post, idml, indesign, generator

post-generator-from-idml/g16WPIDML.php 92% from 13 tests

The main PHP file in "= Post Generator from IDML" ver. 0.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("post-generator-from-idml.php" instead of "g16WPIDML.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin7,178 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript341,1119877,126
PHP1132252

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.55
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
No PNG files were detected