83% navayan-tinymce-pretty-code

Code Review | Navayan TinyMCE Pretty Code

WordPress plugin Navayan TinyMCE Pretty Code scored83%from 54 tests.

About plugin

  • Plugin page: navayan-tinymce-p...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jul 22, 2013
  • Latest release: Jul 25, 2013
  • Number of updates: 8
  • Update frequency: every 0.8 days
  • Top authors: amolnw2778 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,204 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.00MB] [CPU: ▼13.09ms] Passed 4 tests

A check of server-side resources used by Navayan TinyMCE Pretty Code
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.99 ▲1.67
Dashboard /wp-admin3.31 ▼0.0341.91 ▼18.69
Posts /wp-admin/edit.php3.36 ▲0.0146.92 ▲2.58
Add New Post /wp-admin/post-new.php5.90 ▲0.0178.45 ▼29.56
Media Library /wp-admin/upload.php3.23 ▲0.0133.32 ▼5.79

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Navayan TinyMCE Pretty Code
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲6313.25 ▼1.404.41 ▲2.7842.04 ▼0.06
Dashboard /wp-admin2,206 ▲145.80 ▲0.6996.19 ▼12.6838.51 ▼5.39
Posts /wp-admin/edit.php2,092 ▲32.04 ▼0.0140.36 ▲4.7638.46 ▲6.42
Add New Post /wp-admin/post-new.php1,372 ▼16116.82 ▼6.33563.33 ▼111.3944.83 ▼17.17
Media Library /wp-admin/upload.php1,388 ▲34.16 ▼0.1795.88 ▼18.0238.33 ▼7.05

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/navayan-tinymce-pretty-code/index.php:16

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)
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Requires at least: Version format is invalid
  • Screenshots: Add an image for screenshot #1 ('Code' and 'PrettyPrint' Buttons appeard in TinyMCE WYSIWYG editor)
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

navayan-tinymce-pretty-code/index.php 92% from 13 tests

The main file in "Navayan TinyMCE Pretty Code" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("navayan-tinymce-pretty-code.php" instead of "index.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
No dangerous file extensions were detected68 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP191140
JavaScript14028

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
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%
Functions3
▷ Named functions3100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
navayan-pretty-code.png1.24KB0.71KB▼ 42.92%