62% wp-cloud-edit

Code Review | WP Cloud Edit

WordPress plugin WP Cloud Edit scored62%from 54 tests.

About plugin

  • Plugin page: wp-cloud-edit
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 13, 2017
  • Latest release: Apr 13, 2017
  • Number of updates: 8
  • Update frequency: N/A
  • Top authors: erhu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /682 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.92MB] [CPU: ▼35.76ms] Passed 4 tests

An overview of server-side resources used by WP Cloud Edit
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.18 ▼1.74
Dashboard /wp-admin3.02 ▼0.2823.02 ▼25.30
Posts /wp-admin/edit.php3.02 ▼0.3326.57 ▼23.94
Add New Post /wp-admin/post-new.php3.02 ▼2.8722.27 ▼82.33
Media Library /wp-admin/upload.php3.02 ▼0.2126.67 ▼11.45
设置 /wp-admin/admin.php?page=setting3.0227.71
内容发布 /wp-admin/admin.php?page=content3.0220.31
云采编 /wp-admin/admin.php?page=WP-CloudEdit3.0226.83
发布记录 /wp-admin/admin.php?page=published3.0227.54
内容源管理 /wp-admin/admin.php?page=source3.0221.93

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: 1 new table, 8 new options
New tables
wp_wpce_correlation
New WordPress options
theysaidso_admin_options
can_compress_scripts
category_children
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
wpce_db_version

Browser metrics Passed 4 tests

Checking browser requirements for WP Cloud Edit
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,883 ▲13713.49 ▼1.045.30 ▲3.3142.25 ▼6.29
Dashboard /wp-admin2,277 ▲865.18 ▲0.29110.83 ▲10.4180.63 ▲36.03
Posts /wp-admin/edit.php2,184 ▲952.46 ▲0.4544.70 ▲2.5944.52 ▲6.74
Add New Post /wp-admin/post-new.php1,659 ▲12622.33 ▼0.84687.20 ▲32.02105.10 ▲48.84
Media Library /wp-admin/upload.php1,465 ▲804.62 ▲0.39113.99 ▲5.5689.81 ▲42.30
设置 /wp-admin/admin.php?page=setting9142.0238.3463.65
内容发布 /wp-admin/admin.php?page=content1,0672.1957.1460.29
云采编 /wp-admin/admin.php?page=WP-CloudEdit9371.9943.4860.96
发布记录 /wp-admin/admin.php?page=published8951.9836.2543.85
内容源管理 /wp-admin/admin.php?page=source1,1862.1741.9951.88

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin cannot be uninstalled
    • > User deprecated in wp-includes/functions.php+5453
    Function add_object_page is deprecated since version 4.5.0! Use add_menu_page() instead.
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • category_children
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=source
    • > User deprecated in wp-includes/functions.php+5453
    Function add_object_page is deprecated since version 4.5.0! Use add_menu_page() instead.
    • > GET request to /wp-admin/admin.php?page=content
    • > User notice in wp-includes/functions.php+5905
    Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 4× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wp-cloud-edit/footer.php
    • > /wp-content/plugins/wp-cloud-edit/wp-CloudEdit-published.php
    • > /wp-content/plugins/wp-cloud-edit/processQuery.php
    • > /wp-content/plugins/wp-cloud-edit/header.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=source
    • > Network (severe)
    wp-content/plugins/wp-cloud-edit/wpce.png - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=source
    • > Network (severe)
    wp-content/plugins/wp-cloud-edit/fonts/glyphicons-halflings-regular.woff - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=source
    • > Network (severe)
    wp-content/plugins/wp-cloud-edit/fonts/glyphicons-halflings-regular.ttf - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% 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 not formatted correctly
Please take inspiration from this readme.txt

wp-cloud-edit/wp-cloud-edit.php Passed 13 tests

The primary PHP file in "WP Cloud Edit" version 1.0 is used by WordPress to initiate all plugin functionality
67 characters long description:
云采编 基于云端最新资讯,方便快捷的发布新闻。

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected1,960 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP11194611,173
JavaScript75931481
CSS5259306

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
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%
Functions17
▷ Named functions1694.12%
▷ Anonymous functions15.88%
Constants1
▷ Global constants1100.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
No PNG files were detected