84% inline-preview

Code Review | Inline Preview

WordPress plugin Inline Preview scored84%from 54 tests.

About plugin

  • Plugin page: inline-preview
  • Plugin version: 4.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.7
  • WordPress version: 6.3.1
  • First release: Jun 24, 2013
  • Latest release: Dec 7, 2016
  • Number of updates: 10
  • Update frequency: every 126.7 days
  • Top authors: cfinke (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

500+ active /8,791 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

An overview of server-side resources used by Inline Preview
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0133.15 ▼6.81
Dashboard /wp-admin3.31 ▲0.0145.20 ▼7.20
Posts /wp-admin/edit.php3.36 ▲0.0047.31 ▲1.04
Add New Post /wp-admin/post-new.php5.92 ▲0.0392.77 ▲2.17
Media Library /wp-admin/upload.php3.24 ▲0.0032.17 ▼1.73

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Inline Preview
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.58 ▼0.701.61 ▼0.2140.07 ▼3.93
Dashboard /wp-admin2,203 ▲154.87 ▼0.13109.76 ▲0.6043.04 ▲1.12
Posts /wp-admin/edit.php2,089 ▼01.98 ▼0.0540.11 ▲4.9934.77 ▼3.19
Add New Post /wp-admin/post-new.php6,350 ▲4,83624.41 ▲6.93874.99 ▲264.1434.70 ▼22.08
Media Library /wp-admin/upload.php1,382 ▼94.25 ▲0.0696.13 ▼1.0341.46 ▼2.75

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • 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
Even though no errors were found, 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
  • 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/inline-preview/inline-preview.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: preview, live preview

inline-preview/inline-preview.php Passed 13 tests

The primary PHP file in "Inline Preview" version 4.3 is used by WordPress to initiate all plugin functionality
63 characters long description:
Adds a post preview next to the editor instead of in a new tab.

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 plugin298 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript15629176
CSS2610112
PHP13810

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin