10% written

Code Review | Written

WordPress plugin Written scored 10% from 54 tests.

About plugin

  • Plugin page: written
  • Plugin version: 3.0.12
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.2.3
  • WordPress version: 5.8.1
  • First release: Nov 25, 2013
  • Latest release: Nov 1, 2019
  • Number of updates: 58
  • Update frequency: every 37.4 days
  • Top authors: written (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

200+ active / 12,382 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/written/written.php+11
    define(): Declaration of case-insensitive constants is deprecated

Server metrics [RAM: ▼1.83MB] [CPU: ▼186.78ms] Passed 4 tests

An overview of server-side resources used by Written
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /1.80 ▼1.048.48 ▼27.25
Dashboard /wp-admin1.82 ▼1.245.97 ▼34.27
Posts /wp-admin/edit.php1.82 ▼1.297.07 ▼30.01
Add New Post /wp-admin/post-new.php1.82 ▼3.625.35 ▼653.53
Media Library /wp-admin/upload.php1.82 ▼1.196.05 ▼29.29

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, 1 new option
New WordPress options
wtt_plugin_version_number

Browser metrics Passed 4 tests

A check of browser resources used by Written
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,698 ▲10315.89 ▲0.339.10 ▼0.1646.03 ▼1.12
Dashboard /wp-admin2,982 ▲485.89 ▼0.08136.14 ▼6.19132.53 ▲21.99
Posts /wp-admin/edit.php2,770 ▲312.70 ▼0.0063.00 ▼2.2593.12 ▼0.41
Add New Post /wp-admin/post-new.php1,685 ▲218.83 ▲0.06357.11 ▼18.84108.84 ▼5.14
Media Library /wp-admin/upload.php1,844 ▲345.00 ▼0.00129.71 ▼16.21134.25 ▲16.43

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
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/written/written.php+11
    define(): Declaration of case-insensitive constants is deprecated

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
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/written/css/wtt_dynamic.php
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/written/written-adbuyout.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_title() in wp-content/plugins/written/adbuyout-template.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/written/written-content-traffic.php:41
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/written/written.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: written, content, content marketing, licensing, marketing...

written/written.php Passed 13 tests

"Written" version 3.0.12's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
33 characters long description:
Plugin for Brands and Publishers.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin7,216 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
CSS3706,290
PHP9380184784
LESS1240106
JavaScript471736

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity43.00
▷ Minimum class complexity9.00
▷ Maximum class complexity77.00
Average method complexity3.47
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods34
▷ Static methods00.00%
▷ Public methods1544.12%
▷ Protected methods1955.88%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
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
img/written-icon.png1.40KB0.56KB▼ 60.24%